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
This commit is contained in:
reed%reedloden.com
2007-10-19 04:27:16 +00:00
parent bb07c79e0e
commit b23b1f9bda

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;