summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index 7d0daf7..cfba907 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -49,49 +49,49 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f
49 connect(restoreButton, SIGNAL(clicked()), 49 connect(restoreButton, SIGNAL(clicked()),
50 this, SLOT(restore())); 50 this, SLOT(restore()));
51 connect(backupList, SIGNAL(clicked( QListViewItem * )), 51 connect(backupList, SIGNAL(clicked( QListViewItem * )),
52 this, SLOT(selectItem(QListViewItem*))); 52 this, SLOT(selectItem(QListViewItem*)));
53 connect(restoreSource, SIGNAL(activated( int )), 53 connect(restoreSource, SIGNAL(activated( int )),
54 this, SLOT(sourceDirChanged(int))); 54 this, SLOT(sourceDirChanged(int)));
55 connect(updateList, SIGNAL(clicked()), 55 connect(updateList, SIGNAL(clicked()),
56 this, SLOT( fileListUpdate())); 56 this, SLOT( fileListUpdate()));
57 57
58 //add directorys for backing up 58 //add directorys for backing up
59 applicationSettings = new QListViewItem(backupList, "Application Settings", "", "Settings/"); 59 applicationSettings = new QListViewItem(backupList, "Application Settings", "", "Settings/");
60 selectItem(applicationSettings); 60 selectItem(applicationSettings);
61 applicationSettings = new QListViewItem(backupList, "Application Data", "", "Applications/"); 61 applicationSettings = new QListViewItem(backupList, "Application Data", "", "Applications/");
62 selectItem(applicationSettings); 62 selectItem(applicationSettings);
63 documents= new QListViewItem(backupList, "Documents", "", "Documents/"); 63 documents= new QListViewItem(backupList, "Documents", "", "Documents/");
64 selectItem(documents); 64 selectItem(documents);
65 65
66 scanForApplicationSettings(); 66 scanForApplicationSettings();
67 67
68 backupLocations.insert( "Documents", QDir::homeDirPath() + "/Documents" ); 68 backupLocations.insert( "Documents", QDir::homeDirPath() + "/Documents" );
69 if (StorageInfo::hasCf()) 69 if (StorageInfo::hasCf())
70 { 70 {
71 backupLocations.insert("CF", "/mnt/cf"); 71 backupLocations.insert("CF", "/mnt/cf");
72 } 72 }
73 if (StorageInfo::hasSd || StorageInfo::hasMmc) 73 if (StorageInfo::hasSd() || StorageInfo::hasMmc())
74 { 74 {
75 backupLocations.insert("SD", "/mnt/card"); 75 backupLocations.insert("SD", "/mnt/card");
76 } 76 }
77 77
78 QMap<QString, QString>::Iterator it; 78 QMap<QString, QString>::Iterator it;
79 for( it = backupLocations.begin(); it != backupLocations.end(); ++it ) 79 for( it = backupLocations.begin(); it != backupLocations.end(); ++it )
80 { 80 {
81 storeToLocation->insertItem(it.key()); 81 storeToLocation->insertItem(it.key());
82 restoreSource->insertItem(it.key()); 82 restoreSource->insertItem(it.key());
83 } 83 }
84 84
85 // Read the list of items to ignore. 85 // Read the list of items to ignore.
86 Config config("BackupAndRestore"); 86 Config config("BackupAndRestore");
87 87
88 QList<QString> dontBackupList; 88 QList<QString> dontBackupList;
89 dontBackupList.setAutoDelete(true); 89 dontBackupList.setAutoDelete(true);
90 config.setGroup("DontBackup"); 90 config.setGroup("DontBackup");
91 int total = config.readNumEntry("Total", 0); 91 int total = config.readNumEntry("Total", 0);
92 for(int i = 0; i < total; i++) 92 for(int i = 0; i < total; i++)
93 { 93 {
94 dontBackupList.append(new QString(config.readEntry(QString("%1").arg(i), ""))); 94 dontBackupList.append(new QString(config.readEntry(QString("%1").arg(i), "")));
95 } 95 }
96 96
97 QList<QListViewItem> list; 97 QList<QListViewItem> list;