summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-10-24 09:26:24 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-10-24 09:26:24 +0200
commitffe7269eb6ca5f6ed823eb887009763a239cb633 (patch)
tree7040fd5933b69e98067b38c0c17a342807986065
parent0f6fa330ad2fbcd8dbbe59bf06950b98ed9447b4 (diff)
downloadadept-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.cpp6
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 {