mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
#2993 Ensemble. Hide 'new cross plot' ctx command for ensembles
This commit is contained in:
parent
0b42c4730d
commit
4656e34967
@ -65,7 +65,11 @@ bool RicNewSummaryCrossPlotFeature::isCommandEnabled()
|
||||
|
||||
for (auto item : selectedItems)
|
||||
{
|
||||
if (!dynamic_cast<RimSummaryCase*>(item) && !dynamic_cast<RimSummaryCaseCollection*>(item))
|
||||
RimSummaryCase* sumCase = dynamic_cast<RimSummaryCase*>(item);
|
||||
RimSummaryCaseCollection* sumGroup = dynamic_cast<RimSummaryCaseCollection*>(item);
|
||||
|
||||
if (sumGroup && sumGroup->isEnsemble()) sumGroup = nullptr;
|
||||
if (!sumCase && !sumGroup)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user