Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused argument
  • Loading branch information
nyalldawson committed May 3, 2023
1 parent 2e83566 commit 26ce45d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion python/plugins/processing/core/Processing.py
Expand Up @@ -47,7 +47,6 @@
from processing.core.ProcessingConfig import ProcessingConfig
from processing.gui.MessageBarProgress import MessageBarProgress
from processing.gui.RenderingStyles import RenderingStyles
from processing.gui.Postprocessing import handleAlgorithmResults
from processing.gui.AlgorithmExecutor import execute
from processing.script import ScriptUtils
from processing.tools import dataobjects
Expand Down
6 changes: 5 additions & 1 deletion python/plugins/processing/gui/AlgorithmDialog.py
Expand Up @@ -352,7 +352,11 @@ def finish(self, successful, result, context, feedback, in_place=False):
resultsList.addResult(icon=self.algorithm().icon(), name=out.description(),
timestamp=time.localtime(),
result=result[out.name()])
if not handleAlgorithmResults(self.algorithm(), context, feedback, not keepOpen, result):
if not handleAlgorithmResults(
self.algorithm(),
context,
feedback,
result):
self.resetGui()
return

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/AlgorithmExecutor.py
Expand Up @@ -379,7 +379,7 @@ def executeIterating(alg, parameters, paramToIter, context, feedback):
if not ret:
return False

handleAlgorithmResults(alg, context, feedback, False)
handleAlgorithmResults(alg, context, feedback)
return True


Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/BatchAlgorithmDialog.py
Expand Up @@ -84,7 +84,7 @@ def runAlgorithm(self):
self.execute(alg_parameters)

def handleAlgorithmResults(self, algorithm, context, feedback, parameters):
handleAlgorithmResults(algorithm, context, feedback, False, parameters)
handleAlgorithmResults(algorithm, context, feedback, parameters)

def loadHtmlResults(self, results, num):
for out in self.algorithm().outputDefinitions():
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/gui/Postprocessing.py
Expand Up @@ -129,7 +129,6 @@ def post_process_layer_tree_layer(layer_tree_layer: QgsLayerTreeLayer):
def handleAlgorithmResults(alg: QgsProcessingAlgorithm,
context: QgsProcessingContext,
feedback: Optional[QgsProcessingFeedback] = None,
showResults: bool = True,
parameters: Optional[Dict] = None):
if not parameters:
parameters = {}
Expand Down

0 comments on commit 26ce45d

Please sign in to comment.