879 @param noName name to be used for an unnamed editor (string) |
879 @param noName name to be used for an unnamed editor (string) |
880 @param addNext flag indicating to add the view next to the current |
880 @param addNext flag indicating to add the view next to the current |
881 view (bool) |
881 view (bool) |
882 """ |
882 """ |
883 editor = win.getEditor() |
883 editor = win.getEditor() |
884 if fn is None: |
884 if not fn: |
885 if not noName: |
885 if not noName: |
886 self.untitledCount += 1 |
886 self.untitledCount += 1 |
887 noName = self.tr("Untitled {0}").format(self.untitledCount) |
887 noName = self.tr("Untitled {0}").format(self.untitledCount) |
888 if addNext: |
888 if addNext: |
889 index = self.currentTabWidget.currentIndex() + 1 |
889 index = self.currentTabWidget.currentIndex() + 1 |