Fix quit from fullscreen on macOS.

This commit is contained in:
John Preston 2020-11-09 13:47:53 +03:00
parent 87e4bb1059
commit db23485fa2
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ void Sandbox::setupScreenScale() {
Sandbox::~Sandbox() = default;
bool Sandbox::event(QEvent *e) {
if (e->type() == QEvent::Close) {
if (e->type() == QEvent::Close || e->type() == QEvent::Quit) {
App::quit();
}
return QApplication::event(e);