Mon, 01 Jan 2018 19:30:23 +0100
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)