Fix switching notifier tray icon back to 'OK' state

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master r14.0.0
Slávek Banko 10 years ago
parent 0f6fa330ad
commit ffe7269eb6

@ -69,9 +69,9 @@ void TrayWindow::setAvailableUpdates( int n )
kdDebug() << "TrayWindow obtained " << n << endl; kdDebug() << "TrayWindow obtained " << n << endl;
if ( m_updates == 0 ) { if ( m_updates == 0 ) {
if (isShown()) { setPixmap( isShown() ?
setPixmap(loadSizedIcon( u8( "adept_notifier_ok" ), width() )); loadSizedIcon( u8( "adept_notifier_ok" ), width() ) :
} loadIcon( u8( "adept_notifier_ok" ) ));
hide(); hide();
} }
else { else {

Loading…
Cancel
Save