BreakPointViewer: changed the double-click logic to jump to the position of the breakpoint in the editor.

Mon, 15 Feb 2021 19:55:50 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 15 Feb 2021 19:55:50 +0100
changeset 8105
eb3c1170c135
parent 8104
96e9348ff55f
child 8106
81bf8fe10735

BreakPointViewer: changed the double-click logic to jump to the position of the breakpoint in the editor.

eric6/Debugger/BreakPointViewer.py file | annotate | diff | comparison | revisions
diff -r 96e9348ff55f -r eb3c1170c135 eric6/Debugger/BreakPointViewer.py
--- a/eric6/Debugger/BreakPointViewer.py	Sun Feb 14 18:23:56 2021 +0100
+++ b/eric6/Debugger/BreakPointViewer.py	Mon Feb 15 19:55:50 2021 +0100
@@ -271,7 +271,13 @@
         @type QModelIndex
         """
         if index.isValid():
-            self.__editBreakpoint(index)
+            sindex = self.__toSourceIndex(index)
+            bp = self.__model.getBreakPointByIndex(sindex)
+            if not bp:
+                return
+            
+            fn, line = bp[:2]
+            self.sourceFile.emit(fn, line)
 
     def __editBreak(self):
         """

eric ide

mercurial