Thu, 31 Dec 2020 17:42:50 +0100
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)