Update folder list in status dialog without wiping selection.

This commit is contained in:
Klaas Freitag 2012-03-23 15:31:46 +01:00
parent bdbb85f245
commit 5a4caef2db

View file

@ -448,6 +448,10 @@ void Application::computeOverallSyncStatus()
trayMessage += "\n";
}
trayMessage += folderMessage;
if( _statusDialog->isVisible() ) {
_statusDialog->slotUpdateFolderState( syncedFolder );
}
}
@ -461,14 +465,8 @@ void Application::computeOverallSyncStatus()
#endif
// }
_tray->setIcon( statusIcon );
_tray->setToolTip(trayMessage);
// Only refresh the folder if it is being shown
if( _statusDialog->isVisible() ) {
_statusDialog->setFolderList( map );
}
}
} // namespace Mirall