From a897e0fd377674ed37d7174a4fafc226414c2574 Mon Sep 17 00:00:00 2001 From: Pavel Cvrcek Date: Thu, 11 Aug 2011 11:12:24 -0300 Subject: [PATCH] Bug 661289 - Scratchpad Save File prompts to overwrite existing files twice.; r=rcampbell --- browser/devtools/scratchpad/scratchpad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/devtools/scratchpad/scratchpad.js b/browser/devtools/scratchpad/scratchpad.js index 3a0b4816d0b..46a8e10dc5c 100644 --- a/browser/devtools/scratchpad/scratchpad.js +++ b/browser/devtools/scratchpad/scratchpad.js @@ -540,7 +540,7 @@ var Scratchpad = { fp.defaultString = "scratchpad.js"; if (fp.show() != Ci.nsIFilePicker.returnCancel) { document.title = this.filename = fp.file.path; - this.exportToFile(fp.file); + this.exportToFile(fp.file, true); } },