From 0f6429ecb536c397e7bbe474bf5d2b9cea324e55 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 28 Jan 2015 17:55:12 +0300 Subject: [PATCH] fixed notifications in os x --- Telegram/SourceFiles/pspecific_mac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/pspecific_mac.cpp b/Telegram/SourceFiles/pspecific_mac.cpp index 3a747e3585..b3abc35af8 100644 --- a/Telegram/SourceFiles/pspecific_mac.cpp +++ b/Telegram/SourceFiles/pspecific_mac.cpp @@ -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); }