Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.5.1, 5.6.0 Beta
-
OS X 10.11
-
-
2f115fbe0f2ccc0ad25a77c9612588ace9340228
Description
In example code below, first call to getOpenFileName with a single filter opens properly the dialog with Applications location as working directory, but second call with multiple filters opens the dialog in the same Application directory instead of Documents location as expected.
QString applicationsPath(QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation).first());
QString documentsPath(QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation).first());
QFileDialog::getOpenFileName(this, "Simple Filter Test", applicationsPath, "All files ");
QFileDialog::getOpenFileName(this, "Multiple Filters Test", documentsPath, "Text files (*.txt);;All files ");
NOTE:
This was working fine in OS X 10.10 and older and the issue can be only reproduced with OS X 10.11