Fixed an issue in Listspace.py causing an exception when opening a file. eric7

Tue, 11 Apr 2023 11:34:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 11 Apr 2023 11:34:52 +0200
branch
eric7
changeset 9975
ac49f16d2a9b
parent 9973
d537cba05d38
child 9976
ceae971872de

Fixed an issue in Listspace.py causing an exception when opening a file.

src/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Thu Apr 06 09:32:12 2023 +0200
+++ b/src/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Tue Apr 11 11:34:52 2023 +0200
@@ -619,7 +619,7 @@
         @param newName new name to be shown
         @type str
         """
-        if newName:
+        if newName and editor in self.editors:
             currentRow = self.viewlist.currentRow()
             index = self.editors.index(editor)
             txt = os.path.basename(newName)

eric ide

mercurial