-rw-r--r-- | library/storage.cpp | 14 |
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 | |||
@@ -85,5 +85,5 @@ void StorageInfo::cardMessage( const QCString& msg, const QByteArray& ) | |||
85 | { | 85 | { |
86 | if ( msg == "mtabChanged()" ) | 86 | if ( msg == "mtabChanged()" ) |
87 | update(); | 87 | update(); |
88 | } | 88 | } |
89 | // cause of the lack of a d pointer we need | 89 | // cause of the lack of a d pointer we need |
@@ -105,6 +105,7 @@ void StorageInfo::update() | |||
105 | QString fs = me->mnt_fsname; | 105 | QString fs = me->mnt_fsname; |
106 | if ( fs.left(7)=="/dev/hd" || fs.left(7)=="/dev/sd" | 106 | if ( fs.left(7)=="/dev/hd" || fs.left(7)=="/dev/sd" |
107 | || fs.left(8)=="/dev/mtd" || fs.left(9) == "/dev/mmcd" | 107 | || fs.left(8)=="/dev/mtd" || fs.left(9) == "/dev/mmcd" |
108 | || fs.left(5)=="tmpfs" ) | 108 | || fs.left( 14 ) == "/dev/mmc/part1" |
109 | || fs.left(5)=="tmpfs" ) | ||
109 | { | 110 | { |
110 | n++; | 111 | n++; |
@@ -133,6 +134,6 @@ void StorageInfo::update() | |||
133 | for (; it!=curdisks.end(); ++it, ++fsit, ++optsIt) { | 134 | for (; it!=curdisks.end(); ++it, ++fsit, ++optsIt) { |
134 | QString opts = *optsIt; | 135 | QString opts = *optsIt; |
135 | 136 | ||
136 | QString disk = *it; | 137 | QString disk = *it; |
137 | QString humanname; | 138 | QString humanname; |
138 | bool removable = FALSE; | 139 | bool removable = FALSE; |
@@ -145,4 +146,7 @@ void StorageInfo::update() | |||
145 | humanname = tr("SD Card"); | 146 | humanname = tr("SD Card"); |
146 | removable = TRUE; | 147 | removable = TRUE; |
148 | } else if ( disk.left( 14 ) == "/dev/mmc/part1" ) { | ||
149 | humanname = tr("MMC Card"); | ||
150 | removable = TRUE; | ||
147 | } else if ( disk.left(7) == "/dev/hd" ) | 151 | } else if ( disk.left(7) == "/dev/hd" ) |
148 | humanname = tr("Hard Disk") + " " + disk; | 152 | humanname = tr("Hard Disk") + " " + disk; |