Navigation Menu

Skip to content


[processing] Show a message bar success message after running an
Browse files Browse the repository at this point in the history
in-place alg if no parameter dialog is shown

Allows users to know that the algorithm has actually run in case
there's no visible changes
  • Loading branch information
nyalldawson committed Sep 17, 2018
1 parent f514875 commit bfc5a17
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python/plugins/processing/gui/
Expand Up @@ -231,7 +231,12 @@ def executeAlgorithm(self):

if self.in_place_mode and not [d for d in alg.parameterDefinitions() if not in ('INPUT', 'OUTPUT')]:
parameters = {}
execute_in_place(alg, parameters)
feedback = MessageBarProgress(algname=alg.displayName())
ok, results = execute_in_place(alg, parameters, feedback=feedback)
if ok:
iface.messageBar().pushSuccess('','{} complete').format(alg.displayName()))
# MessageBarProgress handles errors

if alg.countVisibleParameters() > 0:
Expand All @@ -250,7 +255,7 @@ def executeAlgorithm(self):
feedback = MessageBarProgress()
feedback = MessageBarProgress(algname=alg.displayName())
context = dataobjects.createContext(feedback)
parameters = {}
ret, results = execute(alg, parameters, context, feedback)
Expand Down

0 comments on commit bfc5a17

Please sign in to comment.