Fixed an issue cloning an editor without a file name. maintenance release-18.01

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 01 Jan 2018 19:30:23 +0100
branch
maintenance
changeset 6056
bfc5153d0224
parent 6054
3397c9428731
child 6057
61b1ce18b148

Fixed an issue cloning an editor without a file name.
(grafted from ab7128b76524dde9b6a84596200b5aa17fdaeedc)

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
@@ -404,7 +404,7 @@
             view (bool)
         """
         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
@@ -881,7 +881,7 @@
             view (bool)
         """
         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