Diffstat (limited to 'noncore/settings/backup/backuprestore.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/backup/backuprestore.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp index 8928cda..180980a 100644 --- a/noncore/settings/backup/backuprestore.cpp +++ b/noncore/settings/backup/backuprestore.cpp | |||
@@ -584,12 +584,17 @@ void BackupAndRestore::restore() | |||
584 | { | 584 | { |
585 | QMessageBox::critical(this, tr( "Message" ), | 585 | QMessageBox::critical(this, tr( "Message" ), |
586 | tr( "Please select something to restore." ),QString( tr( "Ok") ) ); | 586 | tr( "Please select something to restore." ),QString( tr( "Ok") ) ); |
587 | return; | 587 | return; |
588 | } | 588 | } |
589 | 589 | ||
590 | if ( QMessageBox::warning( this, tr( "Restore" ), | ||
591 | tr( "Would you really overwrite your local data?" ), | ||
592 | tr( "Yes" ), tr( "No" ), "", 1 ) == 1 ) | ||
593 | return; | ||
594 | |||
590 | OWait *owait = new OWait(); | 595 | OWait *owait = new OWait(); |
591 | Global::statusMessage( tr( "Restore Backup..." ) ); | 596 | Global::statusMessage( tr( "Restore Backup..." ) ); |
592 | owait->show(); | 597 | owait->show(); |
593 | qApp->processEvents(); | 598 | qApp->processEvents(); |
594 | 599 | ||
595 | QString restoreFile = backupLocations[restoreSource->currentText()]; | 600 | QString restoreFile = backupLocations[restoreSource->currentText()]; |