diff options
author | Eike Ziller <eike.ziller@digia.com> | 2014-02-13 15:09:18 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-13 17:53:49 +0100 |
commit | 608a329a575479cacbc9971de3f67cfa9e931a46 (patch) | |
tree | 865209106bd5eb3461369c4bfeabbe1f76b79898 /src/gui | |
parent | ed792d7b7cd64bce0168b4e509337a8e0408300e (diff) | |
download | qt4-tools-608a329a575479cacbc9971de3f67cfa9e931a46.tar.gz |
Mac: Fix file dialog filters when filter doesn't start with '*'
Task-number: QTBUG-17326
Change-Id: Ie32f2807e64aa9c90b2e7d75adcd2aef67649225
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/dialogs/qfiledialog_mac.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/dialogs/qfiledialog_mac.mm b/src/gui/dialogs/qfiledialog_mac.mm index 8fea8b18c4..b7ba424274 100644 --- a/src/gui/dialogs/qfiledialog_mac.mm +++ b/src/gui/dialogs/qfiledialog_mac.mm @@ -334,7 +334,8 @@ QT_USE_NAMESPACE } } - QString qtFileName = QT_PREPEND_NAMESPACE(qt_mac_NSStringToQString)(filename); + QString qtFileName + = QFileInfo(QT_PREPEND_NAMESPACE(qt_mac_NSStringToQString)(filename)).fileName(); // No filter means accept everything bool nameMatches = mSelectedNameFilter->isEmpty(); // Check if the current file name filter accepts the file: |