зеркало из https://github.com/mozilla/gecko-dev.git
Bug 661289 - Scratchpad Save File prompts to overwrite existing files twice.; r=rcampbell
This commit is contained in:
Родитель
b485721c95
Коммит
722c8c52fb
|
@ -540,7 +540,7 @@ var Scratchpad = {
|
||||||
fp.defaultString = "scratchpad.js";
|
fp.defaultString = "scratchpad.js";
|
||||||
if (fp.show() != Ci.nsIFilePicker.returnCancel) {
|
if (fp.show() != Ci.nsIFilePicker.returnCancel) {
|
||||||
document.title = this.filename = fp.file.path;
|
document.title = this.filename = fp.file.path;
|
||||||
this.exportToFile(fp.file);
|
this.exportToFile(fp.file, true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче