mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
Fix crash when deleting case.
This commit is contained in:
parent
af3cfc9bac
commit
33c24a219c
@ -68,7 +68,7 @@ bool RicNewContourMapViewFeature::isCommandEnabled() const
|
||||
bool selectedCase = caf::SelectionManager::instance()->selectedItemOfType<RimCase>() != nullptr;
|
||||
|
||||
RimGeoMechView* gmView = caf::SelectionManager::instance()->selectedItemOfType<RimGeoMechView>();
|
||||
if ( gmView )
|
||||
if ( gmView && gmView->femParts() )
|
||||
{
|
||||
// if we have more than one geomech part, contour maps does not work with the current implementation
|
||||
if ( gmView->femParts()->partCount() > 1 ) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user