summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdir.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-08-30 17:02:26 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2010-09-07 12:17:09 (GMT)
commit8e8743113f642e82bac6ecc055d2d3be8f53d7a6 (patch)
tree1d66a234b370e8901d4b80a92e2c6fa0e681a6ce /src/corelib/io/qdir.cpp
parentbde86efc2ad34aa3756ca74e31e3052de5254261 (diff)
downloadQt-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.
Diffstat (limited to 'src/corelib/io/qdir.cpp')
-rw-r--r--src/corelib/io/qdir.cpp1
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);