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;