summaryrefslogtreecommitdiff
authorleseb <leseb>2002-09-04 06:30:37 (UTC)
committer leseb <leseb>2002-09-04 06:30:37 (UTC)
commitab38f9c573c39be3c5ea909dd4eafed319fa9dff (patch) (unidiff)
tree80864deb1c27595db388d0d37f2eab3345a8147e
parentcf317ab123c51fb957ec35d44431e77a8b76c279 (diff)
downloadopie-ab38f9c573c39be3c5ea909dd4eafed319fa9dff.zip
opie-ab38f9c573c39be3c5ea909dd4eafed319fa9dff.tar.gz
opie-ab38f9c573c39be3c5ea909dd4eafed319fa9dff.tar.bz2
Fix some storage name
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/storage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/storage.cpp b/library/storage.cpp
index 13639fe..35e0255 100644
--- a/library/storage.cpp
+++ b/library/storage.cpp
@@ -136,35 +136,35 @@ void StorageInfo::update()
136 QString disk = *it; 136 QString disk = *it;
137 QString humanname; 137 QString humanname;
138 bool removable = FALSE; 138 bool removable = FALSE;
139 if ( isCF(disk) ) { 139 if ( isCF(disk) ) {
140 humanname = tr("CF Card"); 140 humanname = tr("CF Card");
141 removable = TRUE; 141 removable = TRUE;
142 } else if ( disk == "/dev/hda1" ) { 142 } else if ( disk == "/dev/hda1" ) {
143 humanname = tr("Hard Disk"); 143 humanname = tr("Hard Disk");
144 } else if ( disk.left(9) == "/dev/mmcd" ) { 144 } else if ( disk.left(9) == "/dev/mmcd" ) {
145 humanname = tr("SD Card"); 145 humanname = tr("SD Card");
146 removable = TRUE; 146 removable = TRUE;
147 } else if ( disk.left(7) == "/dev/hd" ) 147 } else if ( disk.left(7) == "/dev/hd" )
148 humanname = tr("Hard Disk") + " " + disk.mid(7); 148 humanname = tr("Hard Disk") + " " + disk;
149 else if ( disk.left(7) == "/dev/sd" ) 149 else if ( disk.left(7) == "/dev/sd" )
150 humanname = tr("SCSI Hard Disk") + " " + disk.mid(7); 150 humanname = tr("SCSI Hard Disk") + " " + disk;
151 else if ( disk.left(14) == "/dev/mtdblock6" ) //openzaurus ramfs 151 else if ( disk.left(14) == "/dev/mtdblock6" ) //openzaurus ramfs
152 humanname = tr("Internal Memory"); 152 humanname = tr("Internal Memory");
153 else if ( disk == "/dev/mtdblock1" || humanname == "/dev/mtdblock/1" ) 153 else if ( disk == "/dev/mtdblock1" || humanname == "/dev/mtdblock/1" )
154 humanname = tr("Internal Storage"); 154 humanname = tr("Internal Storage");
155 else if ( disk.left(14) == "/dev/mtdblock/" ) 155 else if ( disk.left(14) == "/dev/mtdblock/" )
156 humanname = tr("Internal Storage") + " " + disk.mid(14); 156 humanname = tr("Internal Storage") + " " + disk;
157 else if ( disk.left(13) == "/dev/mtdblock" ) 157 else if ( disk.left(13) == "/dev/mtdblock" )
158 humanname = tr("Internal Storage") + " " + disk.mid(13); 158 humanname = tr("Internal Storage") + " " + disk;
159 else if ( disk.left(5) == "tmpfs" ) //ipaqs /mnt/ramfs 159 else if ( disk.left(5) == "tmpfs" ) //ipaqs /mnt/ramfs
160 humanname = tr("Internal Memory"); 160 humanname = tr("Internal Memory");
161 FileSystem *fs = new FileSystem( disk, *fsit, humanname, removable, opts ); 161 FileSystem *fs = new FileSystem( disk, *fsit, humanname, removable, opts );
162 mFileSystems.append( fs ); 162 mFileSystems.append( fs );
163 } 163 }
164 emit disksChanged(); 164 emit disksChanged();
165 } else { 165 } else {
166 // just update them 166 // just update them
167 for (QListIterator<FileSystem> i(mFileSystems); i.current(); ++i) 167 for (QListIterator<FileSystem> i(mFileSystems); i.current(); ++i)
168 i.current()->update(); 168 i.current()->update();
169 } 169 }
170#endif 170#endif