summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/utils.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-06-09 19:47:25 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-06-09 19:51:08 +0200
commit67e1de7b4354e6cbd9199a870f847169525483aa (patch)
treeb447c07781adf38448b4e05794d5457eec4599e2 /rbutil/rbutilqt/base/utils.cpp
parenta2c3e3fd0dee8ba65e0bb1bd3216fb5df9efcb74 (diff)
downloadrockbox-67e1de7b4354e6cbd9199a870f847169525483aa.tar.gz
rockbox-67e1de7b4354e6cbd9199a870f847169525483aa.tar.bz2
rockbox-67e1de7b4354e6cbd9199a870f847169525483aa.zip
Only show mountpoints containing a supported filesystem in dropdown.
Change configuration to use filtered mountpoints list. Add HFS+ to the list of supported filesystems -- while Rockbox doesn't run on HFS+ MacPods will use that format, and not having them in the list will then make OS X users wonder why their Ipod isn't showing up. This might need to get revised later. Change-Id: I5eeeb05be6780cb3952a0081df0ce782eca01589
Diffstat (limited to 'rbutil/rbutilqt/base/utils.cpp')
-rw-r--r--rbutil/rbutilqt/base/utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp
index 92eacbe313..c56d4196b3 100644
--- a/rbutil/rbutilqt/base/utils.cpp
+++ b/rbutil/rbutilqt/base/utils.cpp
@@ -573,7 +573,7 @@ QStringList Utils::mountpoints(enum MountpointsFilter type)
QStringList supported;
QStringList tempList;
#if defined(Q_OS_WIN32)
- supported << "FAT32" << "FAT16" << "FAT12";
+ supported << "FAT32" << "FAT16" << "FAT12" << "HFS";
QFileInfoList list = QDir::drives();
for(int i=0; i<list.size();i++)
{
@@ -599,7 +599,7 @@ QStringList Utils::mountpoints(enum MountpointsFilter type)
}
#elif defined(Q_OS_MACX) || defined(Q_OS_OPENBSD)
- supported << "vfat" << "msdos";
+ supported << "vfat" << "msdos" << "hfs";
int num;
struct statfs *mntinf;
@@ -617,7 +617,7 @@ QStringList Utils::mountpoints(enum MountpointsFilter type)
mntinf++;
}
#elif defined(Q_OS_LINUX)
- supported << "vfat" << "msdos";
+ supported << "vfat" << "msdos" << "hfsplus";
FILE *mn = setmntent("/etc/mtab", "r");
if(!mn)
return QStringList("");