summaryrefslogtreecommitdiff
Unidiff
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 fb892d9..02998f0 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -32,19 +32,19 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name)
32 this, SLOT(selectItem(QListViewItem*))); 32 this, SLOT(selectItem(QListViewItem*)));
33 connect(restoreSource, SIGNAL(activated( int )), 33 connect(restoreSource, SIGNAL(activated( int )),
34 this, SLOT(sourceDirChanged(int))); 34 this, SLOT(sourceDirChanged(int)));
35 35
36 systemSettings = new QListViewItem(backupList, "System Settings", "", 36 systemSettings = new QListViewItem(backupList, "System Settings", "",
37 "/etc"); 37 "/etc");
38 selectItem(systemSettings); 38// selectItem(systemSettings);
39 applicationSettings = new QListViewItem(backupList, "Application Settings", "", 39 applicationSettings = new QListViewItem(backupList, "Application Settings", "",
40 QDir::homeDirPath() + "/Settings/"); 40 QDir::homeDirPath() + "/Settings/");
41 selectItem(applicationSettings); 41 selectItem(applicationSettings);
42 documents= new QListViewItem(backupList, "Documents", "", 42 documents= new QListViewItem(backupList, "Documents", "",
43 QDir::homeDirPath() + "/Documents/"); 43 QDir::homeDirPath() + "/Documents/");
44 selectItem(documents); 44// selectItem(documents);
45 45
46 scanForApplicationSettings(); 46 scanForApplicationSettings();
47 47
48 Config config("BackupAndRestore"); 48 Config config("BackupAndRestore");
49 config.setGroup("General"); 49 config.setGroup("General");
50 int totalLocations = config.readNumEntry("totalLocations",0); 50 int totalLocations = config.readNumEntry("totalLocations",0);
@@ -175,14 +175,14 @@ void BackupAndRestore::backupPressed(){
175 int c = 1; 175 int c = 1;
176 while(QFile::exists(outputFile + EXTENSION)){ 176 while(QFile::exists(outputFile + EXTENSION)){
177 outputFile = t + QString("%1").arg(c); 177 outputFile = t + QString("%1").arg(c);
178 c++; 178 c++;
179 } 179 }
180 outputFile += EXTENSION; 180 outputFile += EXTENSION;
181 181 qDebug("system(\"tar -c %1 | gzip > %2\").arg(backupFiles).arg(outputFile).latin1())");
182 int r = system(QString("tar -c %1 | gzip --best > %2").arg(backupFiles).arg(outputFile).latin1()); 182 int r = system(QString("tar -c %1 | gzip > %2").arg(backupFiles).arg(outputFile).latin1() );
183 if(r != 0){ 183 if(r != 0){
184 QMessageBox::critical(this, "Message", "Backup Failed.",QString("Ok") ); 184 QMessageBox::critical(this, "Message", "Backup Failed.",QString("Ok") );
185 return; 185 return;
186 } 186 }
187 else{ 187 else{
188 QMessageBox::critical(this, "Message", "Backup Successfull.",QString("Ok") ); 188 QMessageBox::critical(this, "Message", "Backup Successfull.",QString("Ok") );