Testing eric7

Wed, 20 Dec 2023 11:06:38 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 20 Dec 2023 11:06:38 +0100
branch
eric7
changeset 10427
3733e2b23cf7
parent 10426
1150e67efb5a
child 10428
a071d4065202

Testing
- Fixed a bug in the result list causing the "Show Source" context menu entry being enabled even when no such info was reported by the testing backend.

src/eric7/Testing/TestResultsTree.py file | annotate | diff | comparison | revisions
--- 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