iOS File Dialog: Allow picking files if name filter is '*' (all files)

Name filters may be not empty and include all files ('*'). We should
not add any file type limitations in this case. Ammends commit
ce20b81070

Pick-to: 6.5
Change-Id: I3983e576a0ada4b7b40837c5c797359114b1ae02
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Doris Verria 2022-12-15 21:44:10 +01:00
parent 8f0c366087
commit af0f13b460

View File

@ -23,7 +23,9 @@
results.append(QPlatformFileDialogHelper::cleanFilterList(filter));
docTypes = [self computeAllowedFileTypes:results];
} else {
}
if (!docTypes.count) {
switch (fileDialog->options()->fileMode()) {
case QFileDialogOptions::AnyFile:
case QFileDialogOptions::ExistingFile:
@ -90,6 +92,9 @@
{
QStringList fileTypes;
for (const QString &filter : filters) {
if (filter == (QLatin1String("*")))
continue;
if (filter.contains(u'?'))
continue;