[processing] Use silent feedback by default in processing.run

Relying on the iface messagebar feedback as a fallback is not
safe for standalone scripts. If callers want to use a message
bar feedback they should specify this feedback object specifically
when calling processing.run
This commit is contained in:
Nyall Dawson 2018-04-11 09:47:34 +10:00
parent bf0c4f9413
commit d5573a5a7b

View File

@ -116,7 +116,7 @@ class Processing(object):
alg = QgsApplication.processingRegistry().createAlgorithmById(algOrName)
if feedback is None:
feedback = MessageBarProgress(alg.displayName() if alg else Processing.tr('Processing'))
feedback = QgsProcessingFeedback()
if alg is None:
# fix_print_with_import