printing: Don't show Rejecting Jobs when we don't know

Set reasonable default values for printers discovered
by Avahi which do not have 'printer-type' attribute.
This is the case for network printers which were not
published by CUPS.

Related to the issue #1509.
This commit is contained in:
Marek Kasik 2019-01-25 16:41:24 +01:00
parent 88da95d921
commit e54049bc26

View File

@ -2887,6 +2887,9 @@ create_cups_printer_from_avahi_data (AvahiConnectionTestData *data)
info->avahi_printer = TRUE;
info->printer_name = data->printer_name;
info->printer_uri = data->printer_uri;
info->default_printer = FALSE;
info->remote_printer = TRUE;
info->is_accepting_jobs = TRUE;
if (data->got_printer_state)
{