diff --git a/src/ui/manager/windowmanager.cpp b/src/ui/manager/windowmanager.cpp index 45c8c90e..7201e266 100644 --- a/src/ui/manager/windowmanager.cpp +++ b/src/ui/manager/windowmanager.cpp @@ -664,7 +664,7 @@ bool WindowManager::closeWindow(WidgetWindow *w) } } - if (w->deleteOnClose()) { + if (m_isAppQuitting || w->deleteOnClose()) { w->deleteLater(); return true; }