Skip to content

Commit af0e369

Browse files
committed
Fix actions on model items in browser
1 parent 41fed33 commit af0e369

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/plugins/processing/ProcessingPlugin.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ def editModel(self):
130130
dlg.loadModel(self.path())
131131
dlg.show()
132132

133-
def actions(self):
134-
run_model_action = QAction(QCoreApplication.translate('ProcessingPlugin', '&Run Model…'), self)
133+
def actions(self, parent):
134+
run_model_action = QAction(QCoreApplication.translate('ProcessingPlugin', '&Run Model…'), parent)
135135
run_model_action.triggered.connect(self.runModel)
136-
edit_model_action = QAction(QCoreApplication.translate('ProcessingPlugin', '&Edit Model…'), self)
136+
edit_model_action = QAction(QCoreApplication.translate('ProcessingPlugin', '&Edit Model…'), parent)
137137
edit_model_action.triggered.connect(self.editModel)
138138
return [run_model_action, edit_model_action]
139139

0 commit comments

Comments
 (0)