Skip to content

Commit be2ec2f

Browse files
committed
Fix running processing algs through locator
1 parent f5a0243 commit be2ec2f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

python/plugins/processing/gui/AlgorithmLocatorFilter.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,16 @@ def fetchResults(self, string, context, feedback):
7272
self.resultFetched.emit(result)
7373

7474
def triggerResult(self, result):
75-
a = QgsApplication.processingRegistry().algorithmById(result.userData)
76-
if a:
77-
alg = a.getCopy()
78-
message = alg.checkBeforeOpeningParametersDialog()
79-
if message:
75+
alg = QgsApplication.processingRegistry().algorithmById(result.userData)
76+
if alg:
77+
ok, message = alg.canExecute()
78+
if not ok:
8079
dlg = MessageDialog()
8180
dlg.setTitle(self.tr('Missing dependency'))
8281
dlg.setMessage(message)
8382
dlg.exec_()
8483
return
85-
dlg = alg.getCustomParametersDialog()
84+
dlg = alg.createCustomParametersWidget()
8685
if not dlg:
8786
dlg = AlgorithmDialog(alg)
8887
canvas = iface.mapCanvas()

0 commit comments

Comments
 (0)