summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/kernel/qapplication.cpp')
-rw-r--r--src/widgets/kernel/qapplication.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp
index 9069b9005d..74868077b3 100644
--- a/src/widgets/kernel/qapplication.cpp
+++ b/src/widgets/kernel/qapplication.cpp
@@ -3342,6 +3342,10 @@ bool QApplication::notify(QObject *receiver, QEvent *e)
break;
}
+ // We don't call QGuiApplication::notify here, so we need to duplicate the logic
+ if (e->type() == QEvent::Close && receiver->isWindowType() && res)
+ d->maybeQuitOnLastWindowClosed(static_cast<QWindow *>(receiver));
+
return res;
}