Fixed an issue cloning an editor without a file name.

Mon, 01 Jan 2018 19:30:23 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 01 Jan 2018 19:30:23 +0100
changeset 6055
ab7128b76524
parent 6053
c2d1566692d3
child 6058
9432e23f663f

Fixed an issue cloning an editor without a file name.

Plugins/ViewManagerPlugins/Listspace/Listspace.py file | annotate | diff | comparison | revisions
Plugins/ViewManagerPlugins/Tabview/Tabview.py file | annotate | diff | comparison | revisions
--- a/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Mon Jan 01 19:24:24 2018 +0100
+++ b/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Mon Jan 01 19:30:23 2018 +0100
@@ -426,7 +426,7 @@
         @type tuple of two int
         """
         editor = win.getEditor()
-        if fn is None:
+        if not fn:
             if not noName:
                 self.untitledCount += 1
                 noName = self.tr("Untitled {0}").format(self.untitledCount)
--- a/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Mon Jan 01 19:24:24 2018 +0100
+++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Mon Jan 01 19:30:23 2018 +0100
@@ -926,7 +926,7 @@
         @type tuple of two int
         """
         editor = win.getEditor()
-        if fn is None:
+        if not fn:
             if not noName:
                 self.untitledCount += 1
                 noName = self.tr("Untitled {0}").format(self.untitledCount)

eric ide

mercurial