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 ce20b81070c8283a7895e46dd79d560fb0b81462 Change-Id: I3983e576a0ada4b7b40837c5c797359114b1ae02 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit af0f13b46053254c7b2416a1f71a95d141247600) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
665c99b6c2
commit
bede6b3db9
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user