mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-19 00:02:48 -04:00
Fix running processing algs through locator
This commit is contained in:
parent
f5a0243c9d
commit
be2ec2f1a7
@ -72,17 +72,16 @@ class AlgorithmLocatorFilter(QgsLocatorFilter):
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user