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,8 +71,6 @@ void RicCreateDuplicateTemplateInOtherUnitSystemFeature::onActionTriggered(bool
|
|||||||
|
|
||||||
fractureTemplateCollection->addFractureTemplate(copyOfTemplate);
|
fractureTemplateCollection->addFractureTemplate(copyOfTemplate);
|
||||||
|
|
||||||
RicNewEllipseFractureTemplateFeature::selectFractureTemplateAndUpdate(fractureTemplateCollection, copyOfTemplate);
|
|
||||||
|
|
||||||
auto currentUnit = copyOfTemplate->fractureTemplateUnit();
|
auto currentUnit = copyOfTemplate->fractureTemplateUnit();
|
||||||
if (currentUnit == RiaEclipseUnitTools::UNITS_METRIC)
|
if (currentUnit == RiaEclipseUnitTools::UNITS_METRIC)
|
||||||
{
|
{
|
||||||
@ -89,6 +87,8 @@ void RicCreateDuplicateTemplateInOtherUnitSystemFeature::onActionTriggered(bool
|
|||||||
|
|
||||||
copyOfTemplate->loadDataAndUpdate();
|
copyOfTemplate->loadDataAndUpdate();
|
||||||
copyOfTemplate->updateConnectedEditors();
|
copyOfTemplate->updateConnectedEditors();
|
||||||
|
|
||||||
|
RicNewEllipseFractureTemplateFeature::selectFractureTemplateAndUpdate(fractureTemplateCollection, copyOfTemplate);
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user