Mac: Fix file dialog filters when filter doesn't start with '*'
Task-number: QTBUG-17326 Change-Id: I3e6ed40fdb0e04367bb031b2c674424a4b74af2f Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
8102b75ee8
commit
0702418c81
@ -318,7 +318,7 @@ static QString strippedText(QString s)
|
||||
}
|
||||
}
|
||||
|
||||
QString qtFileName = QCFString::toQString(filename);
|
||||
QString qtFileName = QFileInfo(QCFString::toQString(filename)).fileName();
|
||||
// No filter means accept everything
|
||||
bool nameMatches = mSelectedNameFilter->isEmpty();
|
||||
// Check if the current file name filter accepts the file:
|
||||
|
Loading…
Reference in New Issue
Block a user