From 797c14c6f69754bfd10deb90e74ff9f4f7359c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Mon, 7 Sep 2015 14:30:52 +0200 Subject: [PATCH] (#423) Well log plot collection is not visible after deleting all plots Made sure that the project's connected editors are updated after deleting a well log plot. --- ApplicationCode/Commands/RicDeleteItemExec.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ApplicationCode/Commands/RicDeleteItemExec.cpp b/ApplicationCode/Commands/RicDeleteItemExec.cpp index 829fce61c0..060e5b35e7 100644 --- a/ApplicationCode/Commands/RicDeleteItemExec.cpp +++ b/ApplicationCode/Commands/RicDeleteItemExec.cpp @@ -34,6 +34,8 @@ #include "RimWellPathCollection.h" #include "RimView.h" #include "RimWellLogPlot.h" +#include "RimWellLogPlotCollection.h" +#include "RimProject.h" namespace caf @@ -112,6 +114,18 @@ void RicDeleteItemExec::redo() { wellLogPlot->updateAvailableDepthRange(); } + + RimWellLogPlotCollection* wellLogPlotCollection = NULL; + parentObj->firstAnchestorOrThisOfType(wellLogPlotCollection); + if (wellLogPlotCollection) + { + RimProject* project = NULL; + parentObj->firstAnchestorOrThisOfType(project); + if (project) + { + project->updateConnectedEditors(); + } + } } }