Call closeProject before quit to ensure a clean shutdown

This commit is contained in:
Magne Sjaastad committed 2024-10-16 14:32:36 +02:00
1 parent 383c7e071d
commit 23cf3fef3a
1 file changed
+1
@@ -66,6 +66,7 @@ void RicExitApplicationFeature::onActionTriggered( bool isChecked )
// This was required after moving to Qt6, causing the application not to shut down properly, and ghost processes remains after a forced
// shutdown. The slot onLastWindowClosed() configured in RiaGuiApplication::RiaGuiApplication is never called. Testing with
// processEvents() had no effect.
app->closeProject();
app->quit();
}