mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7283 Fix crash on exit on centos 7.
Occasionally QGuiApplication::lastWindowClosed() signal could be sent more than once.
This commit is contained in:
parent
8c424ca09b
commit
d5b24f180e
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user