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;
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 {

Loading…
Cancel
Save