summaryrefslogtreecommitdiff
path: root/library
Side-by-side diff
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/storage.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/library/storage.cpp b/library/storage.cpp
index 35e0255..937908d 100644
--- a/library/storage.cpp
+++ b/library/storage.cpp
@@ -86,3 +86,3 @@ void StorageInfo::cardMessage( const QCString& msg, const QByteArray& )
if ( msg == "mtabChanged()" )
- update();
+ update();
}
@@ -106,4 +106,5 @@ void StorageInfo::update()
if ( fs.left(7)=="/dev/hd" || fs.left(7)=="/dev/sd"
- || fs.left(8)=="/dev/mtd" || fs.left(9) == "/dev/mmcd"
- || fs.left(5)=="tmpfs" )
+ || fs.left(8)=="/dev/mtd" || fs.left(9) == "/dev/mmcd"
+ || fs.left( 14 ) == "/dev/mmc/part1"
+ || fs.left(5)=="tmpfs" )
{
@@ -134,4 +135,4 @@ void StorageInfo::update()
QString opts = *optsIt;
-
- QString disk = *it;
+
+ QString disk = *it;
QString humanname;
@@ -146,2 +147,5 @@ void StorageInfo::update()
removable = TRUE;
+ } else if ( disk.left( 14 ) == "/dev/mmc/part1" ) {
+ humanname = tr("MMC Card");
+ removable = TRUE;
} else if ( disk.left(7) == "/dev/hd" )