424 @param indexes of the editor, first the split view index, second the |
424 @param indexes of the editor, first the split view index, second the |
425 index within the view |
425 index within the view |
426 @type tuple of two int |
426 @type tuple of two int |
427 """ |
427 """ |
428 editor = win.getEditor() |
428 editor = win.getEditor() |
429 if fn is None: |
429 if not fn: |
430 if not noName: |
430 if not noName: |
431 self.untitledCount += 1 |
431 self.untitledCount += 1 |
432 noName = self.tr("Untitled {0}").format(self.untitledCount) |
432 noName = self.tr("Untitled {0}").format(self.untitledCount) |
433 self.viewlist.addItem(noName) |
433 self.viewlist.addItem(noName) |
434 editor.setNoName(noName) |
434 editor.setNoName(noName) |