mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix macOS window activation issues
Reverts part of 34b7d08a5, which introduced a regression.
This commit is contained in:
@@ -212,6 +212,12 @@ bool Application::event(QEvent* event)
|
|||||||
emit openFile(static_cast<QFileOpenEvent*>(event)->file());
|
emit openFile(static_cast<QFileOpenEvent*>(event)->file());
|
||||||
return true;
|
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);
|
return QApplication::event(event);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user