summaryrefslogtreecommitdiff
authorkergoth <kergoth>2003-01-24 04:13:09 (UTC)
committer kergoth <kergoth>2003-01-24 04:13:09 (UTC)
commita50448ae6d0ea041abb7c396c9dddf197ca6f125 (patch) (unidiff)
treeefe91bb5320d49de3e7535f97a569aa67e4be09a
parentd1fd53434934a0d617e12e43dce52dfcb4d4bdc4 (diff)
downloadopie-a50448ae6d0ea041abb7c396c9dddf197ca6f125.zip
opie-a50448ae6d0ea041abb7c396c9dddf197ca6f125.tar.gz
opie-a50448ae6d0ea041abb7c396c9dddf197ca6f125.tar.bz2
Add 'Application Data' to backup/restore for backing up $HOME/Applications.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index 533d3a5..1ebe912 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -42,24 +42,27 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name)
42 this, SLOT(restore())); 42 this, SLOT(restore()));
43 connect(backupList, SIGNAL(clicked( QListViewItem * )), 43 connect(backupList, SIGNAL(clicked( QListViewItem * )),
44 this, SLOT(selectItem(QListViewItem*))); 44 this, SLOT(selectItem(QListViewItem*)));
45 connect(restoreSource, SIGNAL(activated( int )), 45 connect(restoreSource, SIGNAL(activated( int )),
46 this, SLOT(sourceDirChanged(int))); 46 this, SLOT(sourceDirChanged(int)));
47 47
48 systemSettings = new QListViewItem(backupList, "System Settings", "", 48 systemSettings = new QListViewItem(backupList, "System Settings", "",
49 "/etc"); 49 "/etc");
50 selectItem(systemSettings); 50 selectItem(systemSettings);
51 applicationSettings = new QListViewItem(backupList, "Application Settings", "", 51 applicationSettings = new QListViewItem(backupList, "Application Settings", "",
52 QDir::homeDirPath() + "/Settings/"); 52 QDir::homeDirPath() + "/Settings/");
53 selectItem(applicationSettings); 53 selectItem(applicationSettings);
54 applicationSettings = new QListViewItem(backupList, "Application Data", "",
55 QDir::homeDirPath() + "/Applications/");
56 selectItem(applicationSettings);
54 documents= new QListViewItem(backupList, "Documents", "", 57 documents= new QListViewItem(backupList, "Documents", "",
55 QDir::homeDirPath() + "/Documents/"); 58 QDir::homeDirPath() + "/Documents/");
56 selectItem(documents); 59 selectItem(documents);
57 60
58 scanForApplicationSettings(); 61 scanForApplicationSettings();
59 62
60 Config config("BackupAndRestore"); 63 Config config("BackupAndRestore");
61 config.setGroup("General"); 64 config.setGroup("General");
62 int totalLocations = config.readNumEntry("totalLocations",0); 65 int totalLocations = config.readNumEntry("totalLocations",0);
63 66
64//todo make less static here and use Storage class to get infos 67//todo make less static here and use Storage class to get infos
65 if(totalLocations == 0){ 68 if(totalLocations == 0){