Disable remove ROI menu action in handle context menu (#1197)
This commit is contained in:
parent
720fa5f3c2
commit
5bebf697b0
@ -758,6 +758,9 @@ class ROI(GraphicsObject):
|
||||
remAct.triggered.connect(self.removeClicked)
|
||||
self.menu.addAction(remAct)
|
||||
self.menu.remAct = remAct
|
||||
# ROI menu may be requested when showing the handle context menu, so
|
||||
# return the menu but disable it if the ROI isn't removable
|
||||
self.menu.setEnabled(self.contextMenuEnabled())
|
||||
return self.menu
|
||||
|
||||
def removeClicked(self):
|
||||
|
Loading…
Reference in New Issue
Block a user