summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index 358f663..59e15a2 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -60,15 +60,24 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name)
60 Config config("BackupAndRestore"); 60 Config config("BackupAndRestore");
61 config.setGroup("General"); 61 config.setGroup("General");
62 int totalLocations = config.readNumEntry("totalLocations",0); 62 int totalLocations = config.readNumEntry("totalLocations",0);
63 63
64//todo make less static here and use Storage class to get infos 64//todo make less static here and use Storage class to get infos
65 if(totalLocations == 0){ 65 if(totalLocations == 0){
66
67/* Ramses has a CF-Slot, but that one is internal and you have to dismount the
68 * the case. There's also almost always a WLAN card inserted there
69*/
70
66 backupLocations.insert("Documents", "/root/Documents"); 71 backupLocations.insert("Documents", "/root/Documents");
72#if defined(QT_QWS_RAMSES)
73 backupLocations.insert("MMC", "/mnt/card");
74#else
67 backupLocations.insert("CF", "/mnt/cf"); 75 backupLocations.insert("CF", "/mnt/cf");
68 backupLocations.insert("SD", "/mnt/card"); 76 backupLocations.insert("SD", "/mnt/card");
77#endif
69 } 78 }
70 else{ 79 else{
71 for(int i = 0; i < totalLocations; i++){ 80 for(int i = 0; i < totalLocations; i++){
72 backupLocations.insert(config.readEntry(QString("backupLocationName_%1").arg(i)), 81 backupLocations.insert(config.readEntry(QString("backupLocationName_%1").arg(i)),
73 config.readEntry(QString("backupLocation_%1").arg(i))); 82 config.readEntry(QString("backupLocation_%1").arg(i)));
74 } 83 }