mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6676 Crash when MDI window is closed
This commit is contained in:
parent
16f1204578
commit
1517c6e32a
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user