Call closeProject before quit to ensure a clean shutdown

This commit is contained in:
Magne Sjaastad
2024-10-15 08:29:40 +02:00
parent 383c7e071d
commit 23cf3fef3a

View File

@@ -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();
}