Skip to content

Commit

Permalink
Fix processing toolbox double click
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Dec 6, 2021
1 parent c938177 commit 46c47f1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/plugins/processing/gui/ProcessingToolbox.py
Expand Up @@ -224,7 +224,11 @@ def activateCurrent(self):
self.executeAlgorithm()

def executeAlgorithmAsBatchProcess(self):
self.executeWithGui.emit(self.algorithmTree.selectedAlgorithm().id(), self, self.in_place_mode, True)
alg = self.algorithmTree.selectedAlgorithm()
if alg is not None:
self.executeWithGui.emit(alg.id(), self, self.in_place_mode, True)

def executeAlgorithm(self):
self.executeWithGui.emit(self.algorithmTree.selectedAlgorithm().id(), self, self.in_place_mode, False)
alg = self.algorithmTree.selectedAlgorithm()
if alg is not None:
self.executeWithGui.emit(alg.id(), self, self.in_place_mode, False)

0 comments on commit 46c47f1

Please sign in to comment.