From eb1d8fac1d1de8b2627c8c06f864a05070114f59 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 21 Feb 2017 12:51:55 +0100 Subject: [PATCH] #1227 Added delete to context menu for stored well alloc plots --- ApplicationCode/Commands/RicDeleteItemFeature.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ApplicationCode/Commands/RicDeleteItemFeature.cpp b/ApplicationCode/Commands/RicDeleteItemFeature.cpp index 97219c46f8..478dd9bfde 100644 --- a/ApplicationCode/Commands/RicDeleteItemFeature.cpp +++ b/ApplicationCode/Commands/RicDeleteItemFeature.cpp @@ -57,6 +57,10 @@ namespace caf bool isDeletable(PdmUiItem * uiItem) { + // Enable delete of well allocation plots + if (dynamic_cast(uiItem)) return true; + + // Disable delete of all sub objects of a well allocation plot caf::PdmObjectHandle* destinationObject = dynamic_cast(uiItem); if (destinationObject) {