diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-09 22:27:06 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-09 22:27:06 +0100 |
commit | a796e6d7df042dacb147dbf4dc31df1909f0cc41 (patch) | |
tree | 1e777f988f908828e7d8578103b5f7a709d59c64 /src/indicator-printer-state-notifier.c | |
parent | 28e4c27cdb3827988a55e57ac1c97a1da2778029 (diff) | |
download | ayatana-indicator-printers-a796e6d7df042dacb147dbf4dc31df1909f0cc41.tar.gz ayatana-indicator-printers-a796e6d7df042dacb147dbf4dc31df1909f0cc41.tar.bz2 ayatana-indicator-printers-a796e6d7df042dacb147dbf4dc31df1909f0cc41.zip |
Don't show errors from non-existing printers
Of course, this shouldn't ever happen in practice.
Diffstat (limited to 'src/indicator-printer-state-notifier.c')
-rw-r--r-- | src/indicator-printer-state-notifier.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |