diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2010-08-30 17:02:26 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2010-09-07 12:17:09 (GMT) |
commit | 8e8743113f642e82bac6ecc055d2d3be8f53d7a6 (patch) | |
tree | 1d66a234b370e8901d4b80a92e2c6fa0e681a6ce | |
parent | bde86efc2ad34aa3756ca74e31e3052de5254261 (diff) | |
download | Qt-8e8743113f642e82bac6ecc055d2d3be8f53d7a6.zip Qt-8e8743113f642e82bac6ecc055d2d3be8f53d7a6.tar.gz Qt-8e8743113f642e82bac6ecc055d2d3be8f53d7a6.tar.bz2 |
Another bug-o introduced in fixing QDirPrivate refactoring
Must clear file lists when changing the name filters.
-rw-r--r-- | src/corelib/io/qdir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index e842611..b126c6d 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -2257,6 +2257,7 @@ void QDir::setNameFilter(const QString &nameFilter) { QDirPrivate* d = d_ptr.data(); d->initFileEngine(); + d->clearFileLists(); d->filterSepChar = QDirPrivate::getFilterSepChar(nameFilter); d->nameFilters = QDirPrivate::splitFilters(nameFilter, d->filterSepChar); |