author | ar <ar> | 2004-10-20 22:13:02 (UTC) |
---|---|---|
committer | ar <ar> | 2004-10-20 22:13:02 (UTC) |
commit | 24b27cb83dfc2a23c26e6edcda84fe26a9e9d685 (patch) (unidiff) | |
tree | 74a0f718dc4199051c4e485d2d6c214a98ac6af6 | |
parent | c0ea353593cd6beed183ee0f9b58a16a869a0308 (diff) | |
download | opie-24b27cb83dfc2a23c26e6edcda84fe26a9e9d685.zip opie-24b27cb83dfc2a23c26e6edcda84fe26a9e9d685.tar.gz opie-24b27cb83dfc2a23c26e6edcda84fe26a9e9d685.tar.bz2 |
- use busy indicator when backing up and restore
-rw-r--r-- | noncore/settings/backup/backuprestore.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp index 36b101c..1748e8d 100644 --- a/noncore/settings/backup/backuprestore.cpp +++ b/noncore/settings/backup/backuprestore.cpp | |||
@@ -10,2 +10,3 @@ using namespace Opie::Core; | |||
10 | #include <opie2/ofiledialog.h> | 10 | #include <opie2/ofiledialog.h> |
11 | #include <opie2/owait.h> | ||
11 | using namespace Opie::Ui; | 12 | using namespace Opie::Ui; |
@@ -253,3 +254,7 @@ void BackupAndRestore::backup() | |||
253 | 254 | ||
254 | setCaption(tr("Backup and Restore... working...")); | 255 | OWait *owait = new OWait(); |
256 | Global::statusMessage( tr( "Backing up..." ) ); | ||
257 | owait->show(); | ||
258 | qApp->processEvents(); | ||
259 | |||
255 | QString outputFile = backupLocations[storeToLocation->currentText()]; | 260 | QString outputFile = backupLocations[storeToLocation->currentText()]; |
@@ -286,2 +291,6 @@ void BackupAndRestore::backup() | |||
286 | 291 | ||
292 | owait->hide(); | ||
293 | delete owait; | ||
294 | |||
295 | //Error-Handling | ||
287 | if(r != 0) | 296 | if(r != 0) |
@@ -436,3 +445,7 @@ void BackupAndRestore::restore() | |||
436 | } | 445 | } |
437 | setCaption(tr("Backup and Restore... working...")); | 446 | |
447 | OWait *owait = new OWait(); | ||
448 | Global::statusMessage( tr( "Restore Backup..." ) ); | ||
449 | owait->show(); | ||
450 | qApp->processEvents(); | ||
438 | 451 | ||
@@ -469,2 +482,5 @@ void BackupAndRestore::restore() | |||
469 | 482 | ||
483 | owait->hide(); | ||
484 | delete owait; | ||
485 | |||
470 | //error handling | 486 | //error handling |