From c55fdb2a7d51307bb02aad114fd598910623d45b Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 13 Sep 2022 18:04:59 +0200 Subject: [PATCH] #9292 Update project tree when new fracture is added --- .../FractureCommands/RicNewWellPathFractureFeature.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/Commands/FractureCommands/RicNewWellPathFractureFeature.cpp b/ApplicationLibCode/Commands/FractureCommands/RicNewWellPathFractureFeature.cpp index c56b28148e..fd96632534 100644 --- a/ApplicationLibCode/Commands/FractureCommands/RicNewWellPathFractureFeature.cpp +++ b/ApplicationLibCode/Commands/FractureCommands/RicNewWellPathFractureFeature.cpp @@ -101,9 +101,12 @@ RimWellPathFracture* RicNewWellPathFractureFeature::addFracture( gsl::not_nullreloadCompletionTypeResultsInAllViews(); - fractureCollection->updateAllRequiredEditors(); } + // Update well path, as the completion collections are hidden if empty. This update will make sure that the folder + // and completion is visible + wellPath->updateAllRequiredEditors(); + Riu3DMainWindowTools::selectAsCurrentItem( fracture ); return fracture; }