#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 2021-01-25 21:21:08 +01:00
parent 8c424ca09b
commit d5b24f180e

View File

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