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:
Eike Ziller 2014-02-13 15:11:56 +01:00 committed by The Qt Project
parent 8102b75ee8
commit 0702418c81

View File

@ -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: