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
parent 0a0389ad56
commit 2ac1e0ed49
No known key found for this signature in database
GPG Key ID: 2885A26445BD33D1

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