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:
parent
05a063e20e
commit
7d254442a0
1 changed files with 1 additions and 1 deletions
|
@ -914,7 +914,7 @@ pp_printer_entry_new (cups_dest_t printer,
|
||||||
|
|
||||||
self->printer_make_and_model = sanitize_printer_model (printer_make_and_model);
|
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_label));
|
||||||
gtk_widget_hide (GTK_WIDGET (self->printer_model));
|
gtk_widget_hide (GTK_WIDGET (self->printer_model));
|
||||||
|
|
Loading…
Add table
Reference in a new issue