diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-04-06 19:50:24 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-04-06 19:50:24 +0000 |
commit | 94d65d837c3506fdcfdcce9768f3c09128702df9 (patch) | |
tree | 965efb1a0b3ce6fe5b200e5806d569501d149f10 | |
parent | 1b637754fa8b49dd189e2124ca4a220af8f7d718 (diff) | |
download | rockbox-94d65d837c3506fdcfdcce9768f3c09128702df9.tar.gz rockbox-94d65d837c3506fdcfdcce9768f3c09128702df9.zip |
when resolving filenames also take system and hidden files into account.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16996 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/rbutilqt/utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/utils.cpp b/rbutil/rbutilqt/utils.cpp index f18a15e15b..4fc863677c 100644 --- a/rbutil/rbutilqt/utils.cpp +++ b/rbutil/rbutilqt/utils.cpp | |||
@@ -76,7 +76,8 @@ QString resolvePathCase(QString path) | |||
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | for(int i = start; i < elems.size(); i++) { | 78 | for(int i = start; i < elems.size(); i++) { |
79 | QStringList direlems = QDir(realpath).entryList(QDir::AllEntries); | 79 | QStringList direlems |
80 | = QDir(realpath).entryList(QDir::AllEntries|QDir::Hidden|QDir::System); | ||
80 | if(direlems.contains(elems.at(i), Qt::CaseInsensitive)) { | 81 | if(direlems.contains(elems.at(i), Qt::CaseInsensitive)) { |
81 | // need to filter using QRegExp as QStringList::filter(QString) | 82 | // need to filter using QRegExp as QStringList::filter(QString) |
82 | // matches any substring | 83 | // matches any substring |