summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-04-06 19:50:24 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-04-06 19:50:24 +0000
commit94d65d837c3506fdcfdcce9768f3c09128702df9 (patch)
tree965efb1a0b3ce6fe5b200e5806d569501d149f10
parent1b637754fa8b49dd189e2124ca4a220af8f7d718 (diff)
downloadrockbox-94d65d837c3506fdcfdcce9768f3c09128702df9.tar.gz
rockbox-94d65d837c3506fdcfdcce9768f3c09128702df9.tar.bz2
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.cpp3
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)
#endif
for(int i = start; i < elems.size(); i++) {
- QStringList direlems = QDir(realpath).entryList(QDir::AllEntries);
+ QStringList direlems
+ = QDir(realpath).entryList(QDir::AllEntries|QDir::Hidden|QDir::System);
if(direlems.contains(elems.at(i), Qt::CaseInsensitive)) {
// need to filter using QRegExp as QStringList::filter(QString)
// matches any substring