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-08-31 16:27:53 (GMT) |
commit | 7a9f84eb0563355aab76c0b56db44382c516cf35 (patch) | |
tree | 270744060888f31452443b4f7faf8fdc1f0d0559 /src/corelib/io/qdir.cpp | |
parent | 50db9fb1bf4944d4b8e3077e0a9d30afb4495c0d (diff) | |
download | Qt-7a9f84eb0563355aab76c0b56db44382c516cf35.zip Qt-7a9f84eb0563355aab76c0b56db44382c516cf35.tar.gz Qt-7a9f84eb0563355aab76c0b56db44382c516cf35.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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index b355f62..70b00a0 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -2258,6 +2258,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); |