(#396) Implemented deletion of well log plots

This commit is contained in:
Pål Hagen 2015-08-31 11:05:55 +02:00
parent ed432290af
commit 5e18afd44c
2 changed files with 3 additions and 0 deletions

View File

@ -757,6 +757,7 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
else if (dynamic_cast<RimWellLogPlot*>(uiItem))
{
commandIds << "RicNewWellLogPlotTraceFeature";
commandIds << "RicDeleteItemFeature";
}
else if (dynamic_cast<RimWellLogPlotTrace*>(uiItem))
{

View File

@ -54,6 +54,8 @@ RimWellLogPlot::RimWellLogPlot()
//--------------------------------------------------------------------------------------------------
RimWellLogPlot::~RimWellLogPlot()
{
RiuMainWindow::instance()->removeWellLogViewer(m_viewer);
delete m_viewer;
}
//--------------------------------------------------------------------------------------------------