From 0ea2b0e537908ba3fbd8b8bfcfb54612488a1536 Mon Sep 17 00:00:00 2001 From: Manuel Dewald Date: Tue, 1 Oct 2019 10:35:13 +0200 Subject: [PATCH] Enable system tray icon click slot for Mac OS --- src/gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 4bdd10e37c..0df64e47c5 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -1051,10 +1051,10 @@ void MainWindow::updateTrayIcon() #else menu->addAction(m_ui->actionQuit); +#endif connect(m_trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), SLOT(trayIconTriggered(QSystemTrayIcon::ActivationReason))); -#endif connect(actionToggle, SIGNAL(triggered()), SLOT(toggleWindow())); m_trayIcon->setContextMenu(menu);