Skip to content
Permalink
Browse files
[ui][processing] Fix broken enter key showing help instead of running…
… algorithm in history dialog
  • Loading branch information
nirvn authored and nyalldawson committed Jun 29, 2021
1 parent e9ec255 commit cfb0360e741ccb59a5c73a5f6582b9b33416e697
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/gui/HistoryDialog.py
@@ -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

@@ -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)

0 comments on commit cfb0360

Please sign in to comment.