This commit is contained in:
John Preston 2015-01-28 18:07:47 +03:00
commit e1f995ab90
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,6 @@ void PsMainWindow::psSetupTrayIcon() {
psUpdateCounter();
trayIcon->show();
psUpdateDelegate();
}
void PsMainWindow::psUpdateWorkmode() {
@ -116,10 +115,11 @@ void PsMainWindow::psUpdateWorkmode() {
if (cWorkMode() == dbiwmWindowOnly) {
if (trayIcon) {
trayIcon->setContextMenu(0);
trayIcon->deleteLater();
delete trayIcon;
}
trayIcon = 0;
}
psUpdateDelegate();
setWindowIcon(wndIcon);
}