mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
Python: Fix crash in project.close().
This commit is contained in:
parent
a36100e4fb
commit
5ecf621357
@ -884,9 +884,13 @@ void RimProject::scheduleCreateDisplayModelAndRedrawAllViews()
|
||||
}
|
||||
}
|
||||
|
||||
for ( auto seisview : activeOilField()->seismicViewCollection()->views() )
|
||||
auto seismicViewCollection = activeOilField()->seismicViewCollection();
|
||||
if ( seismicViewCollection )
|
||||
{
|
||||
seisview->scheduleCreateDisplayModelAndRedraw();
|
||||
for ( auto seisview : seismicViewCollection->views() )
|
||||
{
|
||||
seisview->scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user