CAM: fix context menu callbacks for Qt6
This commit is contained in:
@@ -187,9 +187,12 @@ class ViewProvider(object):
|
||||
for action in menu.actions():
|
||||
menu.removeAction(action)
|
||||
action = QtGui.QAction(translate("PathOp", "Edit"), menu)
|
||||
action.triggered.connect(self.setEdit)
|
||||
action.triggered.connect(self._editInContextMenuTriggered)
|
||||
menu.addAction(action)
|
||||
|
||||
def _editInContextMenuTriggered(self, checked):
|
||||
self.setEdit()
|
||||
|
||||
|
||||
class TaskPanelPage(object):
|
||||
"""Base class for all task panel pages."""
|
||||
|
||||
Reference in New Issue
Block a user