diff --git a/src/gui/Application.cpp b/src/gui/Application.cpp index 0be1101d0..a73fbda60 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); }