From 0f1ffdaee85afc7fb990e255a568cce928e7015b Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Thu, 7 Mar 2013 15:34:28 -0800 Subject: [PATCH] Set the window title to 'untitled' when the active item has no title --- src/app/root-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index 2d3b8fa83..659b331c9 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -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