mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #8732 from OPM/summarymultiplot_updates2
Summary Multiplot updates
This commit is contained in:
@@ -77,6 +77,12 @@ void RicDeleteSubPlotFeature::onActionTriggered( bool isChecked )
|
||||
caf::SelectionManager::instance()->objectsByType( &selection );
|
||||
std::set<RimPlotWindow*> alteredPlotWindows;
|
||||
|
||||
for ( RimPlot* plot : selection )
|
||||
{
|
||||
if ( !plot ) continue;
|
||||
caf::SelectionManager::instance()->removeObjectFromAllSelections( plot );
|
||||
}
|
||||
|
||||
for ( RimPlot* plot : selection )
|
||||
{
|
||||
if ( !plot ) continue;
|
||||
@@ -89,8 +95,6 @@ void RicDeleteSubPlotFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
alteredPlotWindows.insert( multiPlot );
|
||||
multiPlot->removePlot( plot );
|
||||
caf::SelectionManager::instance()->removeObjectFromAllSelections( plot );
|
||||
|
||||
multiPlot->updateConnectedEditors();
|
||||
delete plot;
|
||||
}
|
||||
@@ -98,8 +102,6 @@ void RicDeleteSubPlotFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
alteredPlotWindows.insert( wellLogPlot );
|
||||
wellLogPlot->removePlot( plot );
|
||||
caf::SelectionManager::instance()->removeObjectFromAllSelections( plot );
|
||||
|
||||
wellLogPlot->updateConnectedEditors();
|
||||
delete plot;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user