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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user