fixed notifications in os x

This commit is contained in:
John Preston 2015-01-28 17:55:12 +03:00
parent 1c2289f2ce
commit 0f6429ecb5
1 changed files with 2 additions and 2 deletions

View File

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