From 93fedd0fff925775252873cc8ac1464fa13888b1 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sun, 23 Oct 2022 13:58:35 +0200 Subject: [PATCH] Fix macOS window activation issues Reverts part of 34b7d08a5, which introduced a regression. --- src/gui/Application.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/Application.cpp b/src/gui/Application.cpp index 8e8f4ca5b..f8fb56b72 100644 --- a/src/gui/Application.cpp +++ b/src/gui/Application.cpp @@ -212,6 +212,12 @@ bool Application::event(QEvent* event) emit openFile(static_cast(event)->file()); return true; } +#ifdef Q_OS_MACOS + // restore main window when clicking on the docker icon + else if (event->type() == QEvent::ApplicationActivate) { + emit applicationActivated(); + } +#endif return QApplication::event(event); }