mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 17:12:39 -05:00
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
This commit is contained in:
parent
1b637754fa
commit
94d65d837c
1 changed files with 2 additions and 1 deletions
|
|
@ -76,7 +76,8 @@ QString resolvePathCase(QString path)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for(int i = start; i < elems.size(); i++) {
|
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)) {
|
if(direlems.contains(elems.at(i), Qt::CaseInsensitive)) {
|
||||||
// need to filter using QRegExp as QStringList::filter(QString)
|
// need to filter using QRegExp as QStringList::filter(QString)
|
||||||
// matches any substring
|
// matches any substring
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue