Set the window title to 'untitled' when the active item has no title

This commit is contained in:
Corey Johnson & Nathan Sobo
2013-03-07 15:34:28 -08:00
parent e26d2e5637
commit 0f1ffdaee8

View File

@@ -115,7 +115,7 @@ class RootView extends View
updateTitle: ->
if projectPath = project.getPath()
if item = @getActivePaneItem()
@setTitle("#{item.getTitle()} - #{projectPath}")
@setTitle("#{item.getTitle?() ? 'untitled'} - #{projectPath}")
else
@setTitle(projectPath)
else