Fix filter regular expression for native Windows file dialog.
Task-number: QTBUG-26986 Change-Id: Idbbaca4ea4fc298c50a30671c48b597ac38d3308 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
This commit is contained in:
parent
eeaf00b24a
commit
a1915fbb52
@ -884,7 +884,7 @@ void QWindowsNativeFileDialogBase::setNameFilters(const QStringList &filters)
|
||||
QScopedArrayPointer<COMDLG_FILTERSPEC> comFilterSpec(new COMDLG_FILTERSPEC[size]);
|
||||
|
||||
const QString matchesAll = QStringLiteral(" (*)");
|
||||
const QRegExp filterSeparatorRE(QStringLiteral("; *"));
|
||||
const QRegExp filterSeparatorRE(QStringLiteral("[;\\s]+"));
|
||||
const QString separator = QStringLiteral(";");
|
||||
Q_ASSERT(filterSeparatorRE.isValid());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user