Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0
-
None
Description
QFileDialog::selectNameFilter() does not work without filter details, at least an empty pair of parentheses is required. This bug is related to QTBUG-127924. Attachments:
- app.zip: Application to reproduce the bug
- app.log: Log file of that application
- qt_strip_filters.cpp: Possible fix for function qt_strip_filters (part of qfiledialog.cpp)
Function qt_strip_filters is commented with 'Strip the filters by removing the details, e.g. (.)', but if it's called with no details at all, it returns an empty string. Reason: The used regular expresssion does not match, if a filter does not contain at least '()'.