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