From 230b3bd9537e21d6a1296bc82396e84625817362 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Fri, 26 Mar 2010 21:27:37 -0700 Subject: [PATCH] Bug 555161 - Qt save dialog shows open instead of save. r=dougt --- widget/src/qt/nsFilePicker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/widget/src/qt/nsFilePicker.cpp b/widget/src/qt/nsFilePicker.cpp index c3097abd6af..3113c755c6d 100644 --- a/widget/src/qt/nsFilePicker.cpp +++ b/widget/src/qt/nsFilePicker.cpp @@ -218,6 +218,7 @@ nsFilePicker::Show(PRInt16 *aReturn) break; case nsIFilePicker::modeSave: mDialog->setFileMode(QFileDialog::AnyFile); + mDialog->setAcceptMode(QFileDialog::AcceptSave); break; case nsIFilePicker::modeGetFolder: mDialog->setFileMode(QFileDialog::DirectoryOnly);