#6676 Crash when MDI window is closed

This commit is contained in:
Magne Sjaastad 2020-10-01 15:03:34 +02:00 committed by rubenthoms
parent 16f1204578
commit 1517c6e32a

View File

@ -293,7 +293,11 @@ void RiuMainWindowBase::removeViewerFromMdiArea( QMdiArea* mdiArea, QWidget* vie
}
mdiArea->removeSubWindow( subWindowBeingClosed );
delete subWindowBeingClosed;
// These two lines had to be introduced after themes was used
// Probably related to polish/unpolish of widgets in an MDI setting
// https://github.com/OPM/ResInsight/issues/6676
subWindowBeingClosed->hide();
subWindowBeingClosed->deleteLater();
QList<QMdiSubWindow*> subWindowList = mdiArea->subWindowList( QMdiArea::ActivationHistoryOrder );
if ( !subWindowList.empty() )