diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2014-10-24 09:26:24 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-10-24 09:26:24 +0200 |
commit | ffe7269eb6ca5f6ed823eb887009763a239cb633 (patch) | |
tree | 7040fd5933b69e98067b38c0c17a342807986065 | |
parent | 0f6fa330ad2fbcd8dbbe59bf06950b98ed9447b4 (diff) | |
download | adept-ffe7269eb6ca5f6ed823eb887009763a239cb633.tar.gz adept-ffe7269eb6ca5f6ed823eb887009763a239cb633.zip |
Fix switching notifier tray icon back to 'OK' stater14.0.0
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | adept/notifier/app.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/adept/notifier/app.cpp b/adept/notifier/app.cpp index 9b9ffce..370ea59 100644 --- a/adept/notifier/app.cpp +++ b/adept/notifier/app.cpp @@ -69,9 +69,9 @@ void TrayWindow::setAvailableUpdates( int n ) kdDebug() << "TrayWindow obtained " << n << endl; if ( m_updates == 0 ) { - if (isShown()) { - setPixmap(loadSizedIcon( u8( "adept_notifier_ok" ), width() )); - } + setPixmap( isShown() ? + loadSizedIcon( u8( "adept_notifier_ok" ), width() ) : + loadIcon( u8( "adept_notifier_ok" ) )); hide(); } else { |