Simplify RiuPlotMainWindowTools (#9211)

* Janitor: Add and use onObjectAppended()
* Janitor: Simplify API
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2022-08-18 12:37:51 +02:00
1 parent febbdcf7a0
commit a1e7b64d92
34 files changed
+66 -93

No files matched your search

@@ -1397,7 +1397,7 @@ void RimSummaryMultiPlot::appendSubPlotByStepping( int direction )
loadDataAndUpdate();
updateConnectedEditors();
RiuPlotMainWindowTools::selectAsCurrentItem( newPlots.back(), true );
RiuPlotMainWindowTools::selectAsCurrentItem( newPlots.back() );
updateSourceStepper();
RiuPlotMainWindowTools::refreshToolbars();
@@ -174,7 +174,7 @@ void RimSummaryMultiPlotCollection::duplicatePlot( RimSummaryMultiPlot* plotToDu
updateConnectedEditors();
RiuPlotMainWindowTools::selectAsCurrentItem( plotCopy, true );
RiuPlotMainWindowTools::selectAsCurrentItem( plotCopy );
}
//--------------------------------------------------------------------------------------------------