Fix #6860. We were using the wrong constant in nsFileWidget::PutFile which resulted in the open file dialog being displayed instead of the save file dialog. Yes the Windows build is red as I check this in but it's not related to the problem and mcafee has approved the checkin.

git-svn-id: svn://10.0.0.236/trunk@44592 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sdagley%netscape.com
1999-08-26 00:59:16 +00:00
parent f1fc8767a7
commit 72bc2ae56c

View File

@@ -315,7 +315,7 @@ nsFileDlgResults nsFileWidget::PutFile(nsIWidget * aParent,
const nsString & promptString,
nsFileSpec & theFileSpec)
{
Create(aParent, promptString, eMode_load, nsnull, nsnull);
Create(aParent, promptString, eMode_save, nsnull, nsnull);
PRBool result = Show();
nsFileDlgResults status = nsFileDlgResults_Cancel;
if (result && mFile.Length() > 0) {