printers: Fix visibility guard for the printer "Model" label

We just present the printer "Model" when printer_make_and_model
is different than NULL OR not an empty string.

We were using the wrong logic operator in the conditional that
toggles the visibility of this info.
This commit is contained in:
Felipe Borges 2017-07-20 13:32:14 +02:00
parent 05a063e20e
commit 7d254442a0

View file

@ -914,7 +914,7 @@ pp_printer_entry_new (cups_dest_t printer,
self->printer_make_and_model = sanitize_printer_model (printer_make_and_model);
if (self->printer_make_and_model == NULL && self->printer_make_and_model[0] != '\0')
if (self->printer_make_and_model == NULL || self->printer_make_and_model[0] != '\0')
{
gtk_widget_hide (GTK_WIDGET (self->printer_model_label));
gtk_widget_hide (GTK_WIDGET (self->printer_model));