src/eric7/Testing/TestResultsTree.py

branch
eric7
changeset 10427
3733e2b23cf7
parent 10405
df7e1694d0eb
child 10431
64157aeb0312
diff -r 1150e67efb5a -r 3733e2b23cf7 src/eric7/Testing/TestResultsTree.py
--- a/src/eric7/Testing/TestResultsTree.py	Wed Dec 20 10:49:45 2023 +0100
+++ b/src/eric7/Testing/TestResultsTree.py	Wed Dec 20 11:06:38 2023 +0100
@@ -659,7 +659,9 @@
         act = menu.addAction(
             self.tr("Show Source"), lambda: self.__gotoTestDefinition(index)
         )
-        act.setEnabled(self.model().data(index, Qt.ItemDataRole.UserRole) is not None)
+        act.setEnabled(
+            self.model().data(index, Qt.ItemDataRole.UserRole)[0] is not None
+        )
         menu.addSeparator()
 
         menu.addAction(self.tr("Collapse All"), self.collapseAll)

eric ide

mercurial