Skip to content

Commit

Permalink
Show number of features affected by in place editing
Browse files Browse the repository at this point in the history
Fixes #38680
  • Loading branch information
m-kuhn authored and nyalldawson committed Sep 14, 2020
1 parent 5729fce commit 656c533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/AlgorithmExecutor.py
Expand Up @@ -207,7 +207,7 @@ def execute_in_place_run(alg, parameters, context=None, feedback=None, raise_exc

feedback.setProgress(int((current + 1) * step))

results, ok = {}, True
results, ok = {'count': current + 1}, True

else: # Traditional 'run' with delete and add features cycle

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/ProcessingToolbox.py
Expand Up @@ -253,7 +253,7 @@ def executeAlgorithm(self):
feedback = MessageBarProgress(algname=alg.displayName())
ok, results = execute_in_place(alg, parameters, feedback=feedback)
if ok:
iface.messageBar().pushSuccess('', self.tr('{} complete').format(alg.displayName()))
iface.messageBar().pushSuccess('', self.tr('{algname} completed. %n feature(s) processed.', n=results['count']).format(algname=alg.displayName()))
feedback.close()
# MessageBarProgress handles errors
return
Expand Down

0 comments on commit 656c533

Please sign in to comment.