#1227 Added delete to context menu for stored well alloc plots

This commit is contained in:
Magne Sjaastad 2017-02-21 12:51:55 +01:00
parent 0b0055b635
commit eb1d8fac1d

View File

@ -57,6 +57,10 @@ namespace caf
bool isDeletable(PdmUiItem * uiItem) bool isDeletable(PdmUiItem * uiItem)
{ {
// Enable delete of well allocation plots
if (dynamic_cast<RimWellAllocationPlot*>(uiItem)) return true;
// Disable delete of all sub objects of a well allocation plot
caf::PdmObjectHandle* destinationObject = dynamic_cast<caf::PdmObjectHandle*>(uiItem); caf::PdmObjectHandle* destinationObject = dynamic_cast<caf::PdmObjectHandle*>(uiItem);
if (destinationObject) if (destinationObject)
{ {