mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7519 Curve calculator: Assign unique ID after copy of calculation
Avoid duplicate entries in summary selection dialog
This commit is contained in:
parent
b673fe2600
commit
fd8d38c4f0
@ -88,6 +88,8 @@ RimSummaryCalculation* RimSummaryCalculationCollection::addCalculationCopy( cons
|
|||||||
expression.replace( currVarName, newVarName );
|
expression.replace( currVarName, newVarName );
|
||||||
calcCopy->setExpression( expression );
|
calcCopy->setExpression( expression );
|
||||||
|
|
||||||
|
RimProject::current()->assignCalculationIdToCalculation( calcCopy );
|
||||||
|
|
||||||
m_calculations.push_back( calcCopy );
|
m_calculations.push_back( calcCopy );
|
||||||
|
|
||||||
calcCopy->resolveReferencesRecursively();
|
calcCopy->resolveReferencesRecursively();
|
||||||
|
@ -1036,7 +1036,11 @@ std::set<RifEclipseSummaryAddress> RiuSummaryVectorSelectionUi::findPossibleSumm
|
|||||||
|
|
||||||
if ( sumCase )
|
if ( sumCase )
|
||||||
{
|
{
|
||||||
if ( !isObservedData( sumCase ) ) sources.push_back( sumCase );
|
auto calculated = dynamic_cast<RimCalculatedSummaryCase*>( sumCase );
|
||||||
|
if ( !isObservedData( sumCase ) && !calculated )
|
||||||
|
{
|
||||||
|
sources.push_back( sumCase );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ( ensemble )
|
else if ( ensemble )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user