From 8e4a16e8646c3bc20f817a81d697d5e4b9c88627 Mon Sep 17 00:00:00 2001 From: bluebrother Date: Sat, 5 Apr 2008 18:59:54 +0000 Subject: [PATCH] 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 --- rbutil/rbutilqt/autodetection.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rbutil/rbutilqt/autodetection.cpp b/rbutil/rbutilqt/autodetection.cpp index 34a0db4df..7c194c8bb 100644 --- a/rbutil/rbutilqt/autodetection.cpp +++ b/rbutil/rbutilqt/autodetection.cpp @@ -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 -- 2.11.4.GIT