mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2557 Non Darcy Flow : Select copy at the end to avoid update of editor too early
This commit is contained in:
parent
9a7ca2d2a9
commit
a38d3735c5
@ -71,9 +71,7 @@ void RicCreateDuplicateTemplateInOtherUnitSystemFeature::onActionTriggered(bool
|
||||
|
||||
fractureTemplateCollection->addFractureTemplate(copyOfTemplate);
|
||||
|
||||
RicNewEllipseFractureTemplateFeature::selectFractureTemplateAndUpdate(fractureTemplateCollection, copyOfTemplate);
|
||||
|
||||
auto currentUnit = copyOfTemplate->fractureTemplateUnit();
|
||||
auto currentUnit = copyOfTemplate->fractureTemplateUnit();
|
||||
if (currentUnit == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
copyOfTemplate->convertToUnitSystem(RiaEclipseUnitTools::UNITS_FIELD);
|
||||
@ -89,6 +87,8 @@ void RicCreateDuplicateTemplateInOtherUnitSystemFeature::onActionTriggered(bool
|
||||
|
||||
copyOfTemplate->loadDataAndUpdate();
|
||||
copyOfTemplate->updateConnectedEditors();
|
||||
|
||||
RicNewEllipseFractureTemplateFeature::selectFractureTemplateAndUpdate(fractureTemplateCollection, copyOfTemplate);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user