Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/Application.cpp6
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);
}