Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.0
-
None
-
Mac OS X 10.6.2, Qt 4.6.0 Cocoa 64bit
-
-
e915c2408b2030b142dc309a9e4aba621341aa28
Description
Using the QFileFialog::setFileMode method twice on the same object don't correctly update the fileMode property.
In the attached test program has two buttons for choosing files and directories respectively.
The QFileFialog::setFileMode method is called any time the user press on a button but only works correctly the fist time.
If the user first clicks on the button for choosing a directory and then clicks the button for choosing a file the dialog remains in QFileDialog::Directory mode and don't allow files selection as expected.
Possible related bugs: QTBUG-3483