summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index 7a1f0dd..533d3a5 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -44,19 +44,19 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name)
this, SLOT(selectItem(QListViewItem*)));
connect(restoreSource, SIGNAL(activated( int )),
this, SLOT(sourceDirChanged(int)));
systemSettings = new QListViewItem(backupList, "System Settings", "",
"/etc");
-// selectItem(systemSettings);
+ selectItem(systemSettings);
applicationSettings = new QListViewItem(backupList, "Application Settings", "",
QDir::homeDirPath() + "/Settings/");
selectItem(applicationSettings);
documents= new QListViewItem(backupList, "Documents", "",
QDir::homeDirPath() + "/Documents/");
-// selectItem(documents);
+ selectItem(documents);
scanForApplicationSettings();
Config config("BackupAndRestore");
config.setGroup("General");
int totalLocations = config.readNumEntry("totalLocations",0);
@@ -137,17 +137,17 @@ QList<QListViewItem> BackupAndRestore::getAllItems(QListViewItem *item, QList<QL
*/
void BackupAndRestore::selectItem(QListViewItem *currentItem){
if(!currentItem)
return;
if(currentItem->text(HEADER_BACKUP) == "B"){
- currentItem->setPixmap(HEADER_NAME, Resource::loadPixmap("null"));
+ currentItem->setPixmap(HEADER_NAME, Resource::loadPixmap("backup/null"));
currentItem->setText(HEADER_BACKUP, "");
}
else{
- currentItem->setPixmap(HEADER_NAME, Resource::loadPixmap("check"));
+ currentItem->setPixmap(HEADER_NAME, Resource::loadPixmap("backup/check"));
currentItem->setText(HEADER_BACKUP, "B");
}
}
void BackupAndRestore::scanForApplicationSettings(){
QDir d(applicationSettings->text(BACKUP_LOCATION));