From 72bc2ae56c2b0c896cf9c2ad47ceec2e919166eb Mon Sep 17 00:00:00 2001 From: "sdagley%netscape.com" Date: Thu, 26 Aug 1999 00:59:16 +0000 Subject: [PATCH] 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 --- mozilla/widget/src/windows/nsFileWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/widget/src/windows/nsFileWidget.cpp b/mozilla/widget/src/windows/nsFileWidget.cpp index ebce6bf1503..5046b7d73fa 100644 --- a/mozilla/widget/src/windows/nsFileWidget.cpp +++ b/mozilla/widget/src/windows/nsFileWidget.cpp @@ -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) {