From 8142e8339593294a14bf85007a25c4a253d4ba1a Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 27 Dec 2020 22:45:30 +0400 Subject: [PATCH] Fix connection to QSystemTrayIcon::messageClicked in main_window_win --- Telegram/SourceFiles/platform/win/main_window_win.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();