diff options
author | Janek Bevendorff <janek@keepassxc.org> | 2022-10-23 14:58:35 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2022-10-23 15:47:22 +0300 |
commit | 93fedd0fff925775252873cc8ac1464fa13888b1 (patch) | |
tree | aaace4730cf8e1e1a6c6d34888a0719a81fec356 | |
parent | a73f5bc32ed04637b81dbdfd03dbe3e627d57535 (diff) |
Fix macOS window activation issues
Reverts part of 34b7d08a5, which introduced a regression.
-rw-r--r-- | src/gui/Application.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<QFileOpenEvent*>(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); } |