Skip to content
Permalink
Browse files

Show number of features affected by in place editing

Fixes #38680
  • Loading branch information
m-kuhn authored and nyalldawson committed Sep 14, 2020
1 parent 5729fce commit 656c533fa24e3eac1f8ca3089ea4723b36f48242
@@ -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

@@ -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

0 comments on commit 656c533

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