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:
@@ -57,7 +57,19 @@ bool RicPasteSummaryCaseFeature::isCommandEnabled()
|
||||
|
||||
std::vector<caf::PdmPointer<RimSummaryCase> > summaryCases = RicPasteSummaryCaseFeature::summaryCases();
|
||||
|
||||
return (summaryCases.size() > 0 && !summaryCases[0]->isObservedData());
|
||||
if (summaryCases.size() == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
for (RimSummaryCase* summaryCase : summaryCases)
|
||||
{
|
||||
if (summaryCase->isObservedData())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user