Fix macOS window activation issues

Reverts part of 34b7d08a5, which introduced a regression.
This commit is contained in:
Janek Bevendorff 2022-10-23 13:58:35 +02:00 committed by Janek Bevendorff
parent a73f5bc32e
commit 93fedd0fff

View File

@ -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);
}