Skip to content

Commit

Permalink
[processing] do not close window after executing algorithm if there a…
Browse files Browse the repository at this point in the history
…re problems
  • Loading branch information
volaya committed May 20, 2015
1 parent 5a00912 commit 70023db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/gui/AlgorithmDialog.py
Expand Up @@ -219,7 +219,9 @@ def finish(self):
keepOpen = ProcessingConfig.getSetting(ProcessingConfig.KEEP_DIALOG_OPEN)

if self.iterateParam is None:
handleAlgorithmResults(self.alg, self, not keepOpen)
if not handleAlgorithmResults(self.alg, self, not keepOpen):
self.resetGUI()
return

self.executed = True
self.setInfo('Algorithm %s finished' % self.alg.name)
Expand Down
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/Postprocessing.py
Expand Up @@ -90,3 +90,5 @@ def handleAlgorithmResults(alg, progress=None, showResults=True):
QApplication.restoreOverrideCursor()
dlg = ResultsDialog()
dlg.exec_()

return len(wrongLayers) == 0

0 comments on commit 70023db

Please sign in to comment.