Make sure toolbar is refreshed when a new plot is added (#9199)

This commit is contained in:
jonjenssen
2022-08-17 08:11:30 +02:00
committed by GitHub
parent 535d87c9c4
commit 7607c19c7a
24 changed files with 27 additions and 2 deletions

View File

@@ -30,6 +30,7 @@
#include "RimSummaryCurve.h"
#include "RiuPlotMainWindow.h"
#include "RiuPlotMainWindowTools.h"
#include "WellLogCommands/RicWellLogPlotCurveFeatureImpl.h"
@@ -76,8 +77,7 @@ void RicNewSummaryCrossPlotCurveFeature::onActionTriggered( bool isChecked )
RiaGuiApplication::instance()->getOrCreateAndShowMainPlotWindow()->selectAsCurrentItem( newCurve );
RiuPlotMainWindow* mainPlotWindow = RiaGuiApplication::instance()->mainPlotWindow();
mainPlotWindow->updateMultiPlotToolBar();
RiuPlotMainWindowTools::refreshToolbars();
}
}

View File

@@ -90,6 +90,7 @@ void RicNewSummaryCrossPlotFeature::onActionTriggered( bool isChecked )
RiuPlotMainWindowTools::showPlotMainWindow();
RiuPlotMainWindowTools::selectAsCurrentItem( summaryPlot );
RiuPlotMainWindowTools::setExpanded( summaryPlot );
RiuPlotMainWindowTools::refreshToolbars();
}
}