From 19df293f125f1432e164d4e044640539d806a40d Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 14 Dec 2018 12:13:59 +0100 Subject: [PATCH] #3841 Summary : Update stepping toolbar when curve is deleted --- ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp | 4 ++++ ApplicationCode/UserInterface/RiuPlotMainWindow.cpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp b/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp index 8908b83320..11cce5fbc4 100644 --- a/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp @@ -1000,6 +1000,10 @@ void RimSummaryPlot::deleteCurves(const std::vector& curves) } } } + + + RiuPlotMainWindowTools::refreshToolbars(); + updateCaseNameHasChanged(); } diff --git a/ApplicationCode/UserInterface/RiuPlotMainWindow.cpp b/ApplicationCode/UserInterface/RiuPlotMainWindow.cpp index a370883155..884255cdca 100644 --- a/ApplicationCode/UserInterface/RiuPlotMainWindow.cpp +++ b/ApplicationCode/UserInterface/RiuPlotMainWindow.cpp @@ -505,9 +505,10 @@ void RiuPlotMainWindow::updateSummaryPlotToolBar() if (!m_summaryPlotToolBarEditor->isEditorDataValid(toolBarFields)) { m_summaryPlotToolBarEditor->setFields(toolBarFields); - m_summaryPlotToolBarEditor->updateUi(); } + m_summaryPlotToolBarEditor->updateUi(); + m_summaryPlotToolBarEditor->show(); } else