mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#578) Disable menu commands in tree view when range/property is overridden
This commit is contained in:
@@ -38,7 +38,12 @@ CAF_CMD_SOURCE_INIT(RicGeoMechPropertyFilterInsertFeature, "RicGeoMechPropertyFi
|
||||
bool RicGeoMechPropertyFilterInsertFeature::isCommandEnabled()
|
||||
{
|
||||
std::vector<RimGeoMechPropertyFilter*> propertyFilters = RicGeoMechPropertyFilterFeatureImpl::selectedPropertyFilters();
|
||||
return propertyFilters.size() == 1;
|
||||
if (propertyFilters.size() == 1)
|
||||
{
|
||||
return RicGeoMechPropertyFilterFeatureImpl::isPropertyFilterCommandAvailable(propertyFilters[0]);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user