From a796e6d7df042dacb147dbf4dc31df1909f0cc41 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Thu, 9 Feb 2012 22:27:06 +0100 Subject: Don't show errors from non-existing printers Of course, this shouldn't ever happen in practice. --- src/indicator-printer-state-notifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/indicator-printer-state-notifier.c') diff --git a/src/indicator-printer-state-notifier.c b/src/indicator-printer-state-notifier.c index 751137a..122c800 100644 --- a/src/indicator-printer-state-notifier.c +++ b/src/indicator-printer-state-notifier.c @@ -162,8 +162,8 @@ on_printer_state_changed (CupsNotifier *object, cupsFreeJobs (njobs, jobs); /* don't show any events if the current user does not have jobs queued on - * that printer */ - if (njobs == 0) + * that printer or this printer is unknown to CUPS */ + if (njobs <= 0) return; state_reasons = g_strsplit (printer_state_reasons, " ", 0); -- cgit v1.2.3