diff --git a/src/atom.coffee b/src/atom.coffee index 8903a9cef..ddc2e024d 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -786,6 +786,8 @@ class Atom extends Model showSaveDialogSync: (options={}) -> if _.isString(options) options = defaultPath: options + else + options = _.clone(options) currentWindow = @getCurrentWindow() dialog = remote.require('dialog') options.title ?= 'Save File'