1
0
Fork 0
forked from len0rd/rockbox

fix a stupid bug which made mountpoint detection based on folders non-functional on Ipod and Gigabeat.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16978 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-04-05 18:59:54 +00:00
parent a5d749c15d
commit 00a3e13b1f

View file

@ -127,8 +127,9 @@ bool Autodetection::detect()
}
}
// detection based on player specific folders
QStringList rootfolders = root.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
if(rootfolders.contains("GBSYSTEM"), Qt::CaseInsensitive)
QStringList rootfolders = root.entryList(QDir::Dirs
| QDir::NoDotAndDotDot | QDir::Hidden | QDir::System);
if(rootfolders.contains("GBSYSTEM", Qt::CaseInsensitive))
{
// GBSYSTEM folder -> Gigabeat
m_device = "gigabeatf";
@ -137,7 +138,7 @@ bool Autodetection::detect()
}
#if defined(Q_OS_WIN32)
// on windows, try to detect the drive letter of an Ipod
if(rootfolders.contains("iPod_Control"), Qt::CaseInsensitive)
if(rootfolders.contains("iPod_Control", Qt::CaseInsensitive))
{
// iPod_Control folder -> Ipod found
// detecting of the Ipod type is done below using ipodpatcher