#7283 Fix crash on exit on centos 7.

Occasionally QGuiApplication::lastWindowClosed() signal could be sent
more than once.
This commit is contained in:
Kristian Bendiksen committed 2021-01-26 09:50:28 +01:00
1 parent 8c424ca09b
commit d5b24f180e
1 file changed
+3
@@ -1619,6 +1619,9 @@ void RiaGuiApplication::slotWorkerProcessFinished( int exitCode, QProcess::ExitS
//--------------------------------------------------------------------------------------------------
void RiaGuiApplication::onLastWindowClosed()
{
// Qt can send the lastWindowClosed signal multiple times. Disconnect to avoid reentry.
QObject::disconnect( this, SIGNAL( lastWindowClosed() ), this, SLOT( onLastWindowClosed() ) );
closeProject();
quit();
}