From 489b4bf66b615c5608a2d2a450babc60b3fe0f3f Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 9 Aug 2022 15:15:48 +0200 Subject: [PATCH] Make sure curve names and plot titles are updated using Plot Editor --- .../Commands/SummaryPlotCommands/RicSummaryPlotEditorUi.cpp | 2 +- ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlot.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/Commands/SummaryPlotCommands/RicSummaryPlotEditorUi.cpp b/ApplicationLibCode/Commands/SummaryPlotCommands/RicSummaryPlotEditorUi.cpp index 71f903c9d3..ef3dc2cae4 100644 --- a/ApplicationLibCode/Commands/SummaryPlotCommands/RicSummaryPlotEditorUi.cpp +++ b/ApplicationLibCode/Commands/SummaryPlotCommands/RicSummaryPlotEditorUi.cpp @@ -702,8 +702,8 @@ void RicSummaryPlotEditorUi::updateTargetPlot() m_targetPlot->loadDataAndUpdate(); - m_targetPlot->updatePlotTitle(); m_targetPlot->updateConnectedEditors(); + m_targetPlot->curvesChanged.send(); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlot.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlot.cpp index 11bd74d0c8..33edc7c402 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlot.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryPlot.cpp @@ -2708,6 +2708,8 @@ bool RimSummaryPlot::handleGlobalKeyEvent( QKeyEvent* keyEvent ) //-------------------------------------------------------------------------------------------------- void RimSummaryPlot::onCurveCollectionChanged( const SignalEmitter* emitter ) { + curvesChanged.send(); + updateStackedCurveData(); scheduleReplotIfVisible();