author | kergoth <kergoth> | 2003-01-26 05:28:35 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-01-26 05:28:35 (UTC) |
commit | 32b223ae83b3af61ecdcdd47d93d2bb852608c20 (patch) (unidiff) | |
tree | f93f06b9eab62211b0210d1d9bcae409b0723507 | |
parent | c3347d556ea8caf355c17a169070a4c052f266de (diff) | |
download | opie-32b223ae83b3af61ecdcdd47d93d2bb852608c20.zip opie-32b223ae83b3af61ecdcdd47d93d2bb852608c20.tar.gz opie-32b223ae83b3af61ecdcdd47d93d2bb852608c20.tar.bz2 |
use an information messagebox rather than critical on success, as pointed out by Ken Bantoft.
-rw-r--r-- | noncore/settings/backup/backuprestore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp index 78d1414..457282a 100644 --- a/noncore/settings/backup/backuprestore.cpp +++ b/noncore/settings/backup/backuprestore.cpp | |||
@@ -193,33 +193,33 @@ void BackupAndRestore::backupPressed(){ | |||
193 | 193 | ||
194 | qDebug(QString("system(\"tar -c %1 | gzip > %2\")").arg(backupFiles).arg(outputFile).latin1()); | 194 | qDebug(QString("system(\"tar -c %1 | gzip > %2\")").arg(backupFiles).arg(outputFile).latin1()); |
195 | outputFile += EXTENSION; | 195 | outputFile += EXTENSION; |
196 | 196 | ||
197 | int r = system( QString("tar -c %1 | gzip > %2").arg(backupFiles).arg(outputFile).latin1() ); | 197 | int r = system( QString("tar -c %1 | gzip > %2").arg(backupFiles).arg(outputFile).latin1() ); |
198 | 198 | ||
199 | 199 | ||
200 | 200 | ||
201 | if(r != 0){ | 201 | if(r != 0){ |
202 | perror("Error: "); | 202 | perror("Error: "); |
203 | QString errorMsg="Error\n"+(QString)strerror(errno); | 203 | QString errorMsg="Error\n"+(QString)strerror(errno); |
204 | 204 | ||
205 | QMessageBox::critical(this, "Message", "Backup Failed.\n"+errorMsg, QString("Ok") ); | 205 | QMessageBox::critical(this, "Message", "Backup Failed.\n"+errorMsg, QString("Ok") ); |
206 | return; | 206 | return; |
207 | } | 207 | } |
208 | else{ | 208 | else{ |
209 | QMessageBox::critical(this, "Message", "Backup Successfull.",QString("Ok") ); | 209 | QMessageBox::information(this, "Message", "Backup Successfull.",QString("Ok") ); |
210 | 210 | ||
211 | } | 211 | } |
212 | setCaption(tr("Backup and Restore")); | 212 | setCaption(tr("Backup and Restore")); |
213 | } | 213 | } |
214 | 214 | ||
215 | /*** | 215 | /*** |
216 | * Get a list of all of the files to backup. | 216 | * Get a list of all of the files to backup. |
217 | */ | 217 | */ |
218 | int BackupAndRestore::getBackupFiles(QString &backupFiles, QListViewItem *parent){ | 218 | int BackupAndRestore::getBackupFiles(QString &backupFiles, QListViewItem *parent){ |
219 | QListViewItem * currentItem; | 219 | QListViewItem * currentItem; |
220 | QString currentHome; | 220 | QString currentHome; |
221 | if(!parent) | 221 | if(!parent) |
222 | currentItem = backupList->firstChild(); | 222 | currentItem = backupList->firstChild(); |
223 | else{ | 223 | else{ |
224 | currentItem = parent->firstChild(); | 224 | currentItem = parent->firstChild(); |
225 | currentHome = parent->text(BACKUP_LOCATION); | 225 | currentHome = parent->text(BACKUP_LOCATION); |