From b23b1f9bdae83d6bb044f69a3ae75d05967136be Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Fri, 19 Oct 2007 04:27:16 +0000 Subject: [PATCH] Bug 395534 - "browser.download.lastDir is ignored when right-clicking and "Save Link As ..." when browser.download.useDownloadDir is true" [p=jimm r=gavin a=blocking-firefox3+ for M9] git-svn-id: svn://10.0.0.236/trunk@237884 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/toolkit/content/contentAreaUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/toolkit/content/contentAreaUtils.js b/mozilla/toolkit/content/contentAreaUtils.js index 04dd0f4ed7f..518ef1f1a89 100644 --- a/mozilla/toolkit/content/contentAreaUtils.js +++ b/mozilla/toolkit/content/contentAreaUtils.js @@ -464,7 +464,7 @@ function getTargetFile(aFpP, aSkipPrompt) .getService(Components.interfaces.nsIDownloadManager); try { var lastDir = prefs.getComplexValue("lastDir", nsILocalFile); - if (!useDownloadDir && lastDir.exists()) + if ((!aSkipPrompt || !useDownloadDir) && lastDir.exists()) dir = lastDir; else dir = dnldMgr.userDownloadsDirectory;