Skip to content

Commit

Permalink
[ui][processing] Fix broken enter key showing help instead of running…
Browse files Browse the repository at this point in the history
… algorithm in history dialog
  • Loading branch information
nirvn authored and github-actions[bot] committed Jun 28, 2021
1 parent ea0c6e5 commit b5a6cdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/gui/HistoryDialog.py
Expand Up @@ -30,7 +30,7 @@
from qgis.gui import QgsGui, QgsHelp
from qgis.PyQt import uic
from qgis.PyQt.QtCore import Qt, QCoreApplication, QDate
from qgis.PyQt.QtWidgets import QAction, QPushButton, QDialogButtonBox, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem
from qgis.PyQt.QtWidgets import QAction, QPushButton, QDialogButtonBox, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem, QShortcut
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.Qsci import QsciScintilla

Expand Down Expand Up @@ -78,6 +78,8 @@ def __init__(self):

self.tree.doubleClicked.connect(self.executeAlgorithm)
self.tree.currentItemChanged.connect(self.changeText)
shorcut = QShortcut(Qt.Key_Return, self.tree, context=Qt.WidgetShortcut, activated=self.executeAlgorithm)

self.clearButton.clicked.connect(self.clearLog)
self.saveButton.clicked.connect(self.saveLog)
self.helpButton.clicked.connect(self.openHelp)
Expand Down

0 comments on commit b5a6cdf

Please sign in to comment.