diff --git a/src/gui/application.cpp b/src/gui/application.cpp index d625252a763..5ac1b9373cf 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -252,13 +252,6 @@ void Application::openVirtualFile(const QString &filename) }); } -void Application::tryTrayAgain() -{ - qCInfo(lcApplication) << "Trying tray icon, tray available:" << QSystemTrayIcon::isSystemTrayAvailable(); - if (!_gui->contextMenuVisible()) - _gui->hideAndShowTray(); -} - bool Application::eventFilter(QObject *obj, QEvent *event) { #ifdef Q_OS_MAC diff --git a/src/gui/application.h b/src/gui/application.h index a897d761236..6f3608c250e 100644 --- a/src/gui/application.h +++ b/src/gui/application.h @@ -65,9 +65,6 @@ public slots: */ void openVirtualFile(const QString &filename); - /// Attempt to show() the tray icon again. Used if no systray was available initially. - void tryTrayAgain(); - protected: bool eventFilter(QObject *obj, QEvent *event) override;