mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Hide seismic section folder in views if no seismic data is loaded
This commit is contained in:
@@ -258,3 +258,14 @@ void RimSeismicSectionCollection::updateView()
|
||||
firstAncestorOrThisOfType( view );
|
||||
if ( view ) view->scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimSeismicSectionCollection::shouldBeVisibleInTree() const
|
||||
{
|
||||
RimProject* proj = RimProject::current();
|
||||
if ( proj == nullptr ) return false;
|
||||
|
||||
return !proj->activeOilField()->seismicCollection()->isEmpty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user