From ffe7269eb6ca5f6ed823eb887009763a239cb633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 24 Oct 2014 09:26:24 +0200 Subject: [PATCH] Fix switching notifier tray icon back to 'OK' state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- adept/notifier/app.cpp | 6 +++--- 1 file 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 {