src/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py

branch
eric7
changeset 9975
ac49f16d2a9b
parent 9758
6d24ab9c0404
child 10069
435cc5875135
--- 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