mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash if 3d window is not there when importing summary data
This commit is contained in:
@@ -106,7 +106,7 @@ void RicImportSummaryCasesFeature::onActionTriggered( bool isChecked )
|
||||
|
||||
if ( allCases.size() == 0 )
|
||||
{
|
||||
RiuMainWindow::instance()->close();
|
||||
RiuMainWindow::closeIfOpen();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ bool RicImportSummaryCasesFeature::createAndAddSummaryCasesFromFiles( const QStr
|
||||
|
||||
if ( allCases.size() == 0 )
|
||||
{
|
||||
RiuMainWindow::instance()->close();
|
||||
RiuMainWindow::closeIfOpen();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user