summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);