mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
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:
parent
d6ca83e815
commit
1203d8e114
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user