mirror of
https://github.com/atom/atom.git
synced 2026-02-05 12:15:07 -05:00
Set the project path is the represented file path if undefined for item
This prevents exceptions on the browser process from passing a null argument over IPC.
This commit is contained in:
@@ -139,7 +139,7 @@ class Workspace extends Model
|
||||
if projectPath = atom.project?.getPath()
|
||||
if item = @getActivePaneItem()
|
||||
document.title = "#{item.getTitle?() ? 'untitled'} - #{projectPath}"
|
||||
atom.setRepresentedFilename(item.getPath?())
|
||||
atom.setRepresentedFilename(item.getPath?() ? projectPath)
|
||||
else
|
||||
document.title = projectPath
|
||||
atom.setRepresentedFilename(projectPath)
|
||||
|
||||
Reference in New Issue
Block a user