--- a/src/eric7/Templates/TemplateViewer.py Thu May 25 11:12:05 2023 +0200 +++ b/src/eric7/Templates/TemplateViewer.py Thu May 25 19:51:47 2023 +0200 @@ -12,7 +12,7 @@ import pathlib import re -from PyQt6.QtCore import QCoreApplication, QFile, QIODevice, Qt +from PyQt6.QtCore import QCoreApplication, QFile, QIODevice, Qt, pyqtSlot from PyQt6.QtWidgets import QApplication, QDialog, QMenu, QTreeWidget, QTreeWidgetItem from eric7 import Globals, Preferences @@ -444,6 +444,8 @@ """ self.sortItems(self.sortColumn(), self.header().sortIndicatorOrder()) + @pyqtSlot() + @pyqtSlot(QTreeWidgetItem, int) def __templateItemActivated(self, itm=None, col=0): """ Private slot to handle the activation of an item.