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]

This commit is contained in:
reed@reedloden.com 2007-10-18 21:27:16 -07:00
parent d6ca83e815
commit 1203d8e114

View File

@ -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;