mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1813 Observed data: Remove right click options if any object in selection is an observed data
This commit is contained in:
@@ -43,7 +43,20 @@ bool RicReloadSummaryCaseFeature::isCommandEnabled()
|
||||
{
|
||||
std::vector<RimSummaryCase*> caseSelection = selectedSummaryCases();
|
||||
|
||||
return (caseSelection.size() > 0 && !caseSelection[0]->isObservedData());
|
||||
if (caseSelection.size() == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
for (RimSummaryCase* summaryCase : caseSelection)
|
||||
{
|
||||
if (summaryCase->isObservedData())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user