mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Simplify RiuPlotMainWindowTools (#9211)
* Janitor: Add and use onObjectAppended() * Janitor: Simplify API
This commit is contained in:
@@ -82,8 +82,8 @@ void RicCreateGridCrossPlotFeature::onActionTriggered( bool isChecked )
|
||||
|
||||
collection->updateAllRequiredEditors();
|
||||
RiaGuiApplication::instance()->getOrCreateAndShowMainPlotWindow();
|
||||
RiuPlotMainWindowTools::selectAsCurrentItem( dataSet );
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
|
||||
RiuPlotMainWindowTools::onObjectAppended( dataSet );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -199,8 +199,7 @@ void RicCreateSaturationPressurePlotsFeature::onActionTriggered( bool isChecked
|
||||
|
||||
if ( objectToSelect )
|
||||
{
|
||||
RiuPlotMainWindowTools::selectAsCurrentItem( objectToSelect );
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
RiuPlotMainWindowTools::onObjectAppended( objectToSelect );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user