From 03adb428a021ef47d1c1dc7ec13ea78773de67f9 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 19 Mar 2024 16:49:38 +0100 Subject: [PATCH] Make sure all editors are updated after source stepping --- .../Summary/RimSummaryPlotSourceStepping.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlotSourceStepping.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlotSourceStepping.cpp index 5119e94fafa..22204968091 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlotSourceStepping.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlotSourceStepping.cpp @@ -530,8 +530,7 @@ void RimSummaryPlotSourceStepping::fieldChangedByUi( const caf::PdmFieldHandle* summaryMultiPlot->zoomAllYAxes(); } - RiuPlotMainWindow* mainPlotWindow = RiaGuiApplication::instance()->mainPlotWindow(); - mainPlotWindow->updateMultiPlotToolBar(); + updateAllRequiredEditors(); } else { @@ -541,6 +540,11 @@ void RimSummaryPlotSourceStepping::fieldChangedByUi( const caf::PdmFieldHandle* summaryPlot->curvesChanged.send(); } + updateAllRequiredEditors(); + + RiuPlotMainWindow* mainPlotWindow = RiaGuiApplication::instance()->mainPlotWindow(); + mainPlotWindow->updateMultiPlotToolBar(); + auto ensembleCurveColl = firstAncestorOrThisOfType(); if ( ensembleCurveColl ) {