Skip to content
Permalink
Browse files

Fix running processing algs through locator

  • Loading branch information
nyalldawson committed Jun 11, 2017
1 parent f5a0243 commit be2ec2f1a7afa6b045ab213b89c71aa0d1404180
Showing with 5 additions and 6 deletions.
  1. +5 −6 python/plugins/processing/gui/AlgorithmLocatorFilter.py
@@ -72,17 +72,16 @@ def fetchResults(self, string, context, feedback):
self.resultFetched.emit(result)

def triggerResult(self, result):
a = QgsApplication.processingRegistry().algorithmById(result.userData)
if a:
alg = a.getCopy()
message = alg.checkBeforeOpeningParametersDialog()
if message:
alg = QgsApplication.processingRegistry().algorithmById(result.userData)
if alg:
ok, message = alg.canExecute()
if not ok:
dlg = MessageDialog()
dlg.setTitle(self.tr('Missing dependency'))
dlg.setMessage(message)
dlg.exec_()
return
dlg = alg.getCustomParametersDialog()
dlg = alg.createCustomParametersWidget()
if not dlg:
dlg = AlgorithmDialog(alg)
canvas = iface.mapCanvas()

0 comments on commit be2ec2f

Please sign in to comment.
You can’t perform that action at this time.