mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7166 Use common delete functionality for PLT and RFT plots.
This commit is contained in:
committed by
Magne Sjaastad
parent
1f7cb2b973
commit
05048fe79b
@@ -148,7 +148,6 @@
|
||||
#include "RimWellPathFracture.h"
|
||||
#include "RimWellPathFractureCollection.h"
|
||||
#include "RimWellPltPlot.h"
|
||||
#include "RimWellRftPlot.h"
|
||||
|
||||
#ifdef USE_QTCHARTS
|
||||
#include "RimGridStatisticsPlotCollection.h"
|
||||
@@ -471,14 +470,6 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
}
|
||||
menuBuilder.subMenuEnd();
|
||||
}
|
||||
else if ( dynamic_cast<RimWellRftPlot*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicDeleteRftPlotFeature";
|
||||
}
|
||||
else if ( dynamic_cast<RimWellPltPlot*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicDeletePltPlotFeature";
|
||||
}
|
||||
else if ( dynamic_cast<RimCalcScript*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicEditScriptFeature";
|
||||
@@ -583,7 +574,7 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
menuBuilder << "Separator";
|
||||
menuBuilder << "RicNewSummaryCrossPlotFeature";
|
||||
}
|
||||
else if ( dynamic_cast<RimWellLogPlot*>( firstUiItem ) )
|
||||
else if ( dynamic_cast<RimWellLogPlot*>( firstUiItem ) && !dynamic_cast<RimWellPltPlot*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicPasteWellLogPlotFeature";
|
||||
menuBuilder << "RicPasteWellLogTrackFeature";
|
||||
|
||||
Reference in New Issue
Block a user