402 @param noName name to be used for an unnamed editor (string) |
402 @param noName name to be used for an unnamed editor (string) |
403 @param addNext flag indicating to add the view next to the current |
403 @param addNext flag indicating to add the view next to the current |
404 view (bool) |
404 view (bool) |
405 """ |
405 """ |
406 editor = win.getEditor() |
406 editor = win.getEditor() |
407 if fn is None: |
407 if not fn: |
408 if not noName: |
408 if not noName: |
409 self.untitledCount += 1 |
409 self.untitledCount += 1 |
410 noName = self.tr("Untitled {0}").format(self.untitledCount) |
410 noName = self.tr("Untitled {0}").format(self.untitledCount) |
411 self.viewlist.addItem(noName) |
411 self.viewlist.addItem(noName) |
412 editor.setNoName(noName) |
412 editor.setNoName(noName) |