Plugins/ViewManagerPlugins/Listspace/Listspace.py

branch
maintenance
changeset 6056
bfc5153d0224
parent 6048
82ad8ec9548c
child 6097
bf18415da0c7
equal deleted inserted replaced
6054:3397c9428731 6056:bfc5153d0224
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)

eric ide

mercurial