mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1227 Added delete to context menu for stored well alloc plots
This commit is contained in:
parent
0b0055b635
commit
eb1d8fac1d
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user