mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-12 00:16:10 -06:00
#5725 Add delete command for analysis plot filters
This commit is contained in:
parent
71755d593c
commit
36eacac60b
@ -53,6 +53,7 @@
|
||||
|
||||
#include "RiuPlotMainWindow.h"
|
||||
|
||||
#include "RimAnalysisPlot.h"
|
||||
#include "cafNotificationCenter.h"
|
||||
#include "cafPdmChildArrayField.h"
|
||||
#include "cafPdmDocument.h"
|
||||
@ -338,6 +339,15 @@ void RicDeleteItemExec::redo()
|
||||
surfCollection->updateViews();
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
RimAnalysisPlot* analysisPlot;
|
||||
parentObj->firstAncestorOrThisOfType( analysisPlot );
|
||||
if ( analysisPlot )
|
||||
{
|
||||
analysisPlot->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -154,6 +154,7 @@ bool isDeletable( caf::PdmUiItem* uiItem )
|
||||
|
||||
if ( dynamic_cast<RimGridCrossPlotDataSet*>( uiItem ) ) return true;
|
||||
if ( dynamic_cast<RimAnalysisPlot*>( uiItem ) ) return true;
|
||||
if ( dynamic_cast<RimPlotDataFilterItem*>( uiItem ) ) return true;
|
||||
|
||||
if ( dynamic_cast<RimMultiPlot*>( uiItem ) ) return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user