diff --git a/src/autotype/AutoType.cpp b/src/autotype/AutoType.cpp index 1868d5260..a539d0a03 100644 --- a/src/autotype/AutoType.cpp +++ b/src/autotype/AutoType.cpp @@ -37,6 +37,10 @@ #include "core/Tools.h" #include "gui/MessageBox.h" +#ifdef Q_OS_MAC +#include "gui/macutils/MacUtils.h" +#endif + AutoType* AutoType::m_instance = nullptr; AutoType::AutoType(QObject* parent, bool test) @@ -214,6 +218,7 @@ void AutoType::executeAutoTypeActions(const Entry* entry, QWidget* hideWindow, c if (hideWindow) { #if defined(Q_OS_MACOS) + macUtils()->raiseLastActiveWindow(); m_plugin->hideOwnWindow(); #else hideWindow->showMinimized();