mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#760 Input Property rename does not update dependent fields
This commit is contained in:
@@ -519,6 +519,25 @@ RifReaderInterface::PorosityModelResultType RigCaseCellResultsData::convertFromP
|
||||
return RifReaderInterface::FRACTURE_RESULTS;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RigCaseCellResultsData::updateResultName(RimDefines::ResultCatType resultType, QString& oldName, const QString& newName)
|
||||
{
|
||||
bool anyNameUpdated = false;
|
||||
|
||||
for (auto& it : m_resultInfos)
|
||||
{
|
||||
if (it.m_resultType == resultType && it.m_resultName == oldName)
|
||||
{
|
||||
anyNameUpdated = true;
|
||||
it.m_resultName = newName;
|
||||
}
|
||||
}
|
||||
|
||||
return anyNameUpdated;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user