Skip to content
Permalink
Browse files

[processing] Pressing enter in search box executes the selected algor…

…ithm
  • Loading branch information
nyalldawson committed Feb 22, 2018
1 parent 82bfc40 commit 62cd1edbb3e835d1bcb2e63fef220a277c648681
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/plugins/processing/gui/ProcessingToolbox.py
@@ -71,6 +71,7 @@ def __init__(self):
self.processingToolbar.setIconSize(iface.iconSize(True))

self.searchBox.textChanged.connect(self.textChanged)
self.searchBox.returnPressed.connect(self.activateCurrent)
self.algorithmTree.customContextMenuRequested.connect(
self.showPopupMenu)
self.algorithmTree.doubleClicked.connect(self.executeAlgorithm)
@@ -296,6 +297,9 @@ def editRenderingStyles(self):
dlg = EditRenderingStylesDialog(alg)
dlg.exec_()

def activateCurrent(self):
self.executeAlgorithm()

def executeAlgorithmAsBatchProcess(self):
item = self.algorithmTree.currentItem()
if isinstance(item, TreeAlgorithmItem):

0 comments on commit 62cd1ed

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