diff --git a/Telegram/SourceFiles/platform/win/main_window_win.cpp b/Telegram/SourceFiles/platform/win/main_window_win.cpp index 63c43fe432..61ce7f5005 100644 --- a/Telegram/SourceFiles/platform/win/main_window_win.cpp +++ b/Telegram/SourceFiles/platform/win/main_window_win.cpp @@ -217,7 +217,11 @@ void MainWindow::psSetupTrayIcon() { auto icon = QIcon(App::pixmapFromImageInPlace(Core::App().logoNoMargin())); trayIcon->setIcon(icon); - connect(trayIcon, SIGNAL(messageClicked()), this, SLOT(showFromTray())); + connect( + trayIcon, + &QSystemTrayIcon::messageClicked, + this, + [=] { App::wnd()->showFromTray(); }); attachToTrayIcon(trayIcon); } updateIconCounters();