Skip to content

Commit

Permalink
[processing] Use silent feedback by default in processing.run
Browse files Browse the repository at this point in the history
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

(cherry-picked from d5573a5)
  • Loading branch information
nyalldawson committed Apr 17, 2018
1 parent 89a84f0 commit 655633a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/Processing.py
Expand Up @@ -116,7 +116,7 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
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
Expand Down

0 comments on commit 655633a

Please sign in to comment.