DebugViewer: fixed a bug selecting a debugger entry when there is no current item.

Thu, 31 Dec 2020 17:42:50 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 31 Dec 2020 17:42:50 +0100
changeset 7931
a761160bfde9
parent 7929
fdd769e06482
child 7932
c4c6b2784eec

DebugViewer: fixed a bug selecting a debugger entry when there is no current item.

eric6/Debugger/DebugViewer.py file | annotate | diff | comparison | revisions
--- a/eric6/Debugger/DebugViewer.py	Wed Dec 30 18:24:42 2020 +0100
+++ b/eric6/Debugger/DebugViewer.py	Thu Dec 31 17:42:50 2020 +0100
@@ -702,7 +702,10 @@
                 # nothing to do
                 return
             
-            currentParent = currentItem.parent()
+            if currentItem:
+                currentParent = currentItem.parent()
+            else:
+                currentParent = None
             if currentParent is None:
                 # current is a debugger item
                 self.__debuggersList.setCurrentItem(debuggerItem)

eric ide

mercurial