Skip to content

Commit

Permalink
(#396) Implemented deletion of well log plots
Browse files Browse the repository at this point in the history
  • Loading branch information
palhagen committed Aug 31, 2015
1 parent ed43229 commit 5e18afd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ApplicationCode/ProjectDataModel/RimProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down
2 changes: 2 additions & 0 deletions ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ RimWellLogPlot::RimWellLogPlot()
//--------------------------------------------------------------------------------------------------
RimWellLogPlot::~RimWellLogPlot()
{
RiuMainWindow::instance()->removeWellLogViewer(m_viewer);
delete m_viewer;
}

//--------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 5e18afd

Please sign in to comment.