-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | noncore/settings/backup/backuprestore.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -1,43 +1,44 @@ | |||
1 | 2005-??-??Opie 1.2.0 | 1 | 2005-??-??Opie 1.2.0 |
2 | 2 | ||
3 | New Features | 3 | New Features |
4 | ------------ | 4 | ------------ |
5 | * Launcher: Support a static background pixmap (mickeyl) | 5 | * Launcher: Support a static background pixmap (mickeyl) |
6 | * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) | 6 | * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) |
7 | 7 | ||
8 | Fixed Bugs | 8 | Fixed Bugs |
9 | ---------- | 9 | ---------- |
10 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) | 10 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) |
11 | * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke) | 11 | * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke) |
12 | * #1482 - Fix double '/' in paths (zecke) | 12 | * #1482 - Fix double '/' in paths (zecke) |
13 | * #1536 - Autosave of custom locations in opie backup (ar) | 13 | * #1536 - Autosave of custom locations in opie backup (ar) |
14 | * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) | 14 | * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) |
15 | * #1540 - Implemented deletion of DocLnks in opie-eye (zecke) | 15 | * #1540 - Implemented deletion of DocLnks in opie-eye (zecke) |
16 | * #1542 - Fix Todo crash when priority < 1 or > 5 (drw) | 16 | * #1542 - Fix Todo crash when priority < 1 or > 5 (drw) |
17 | * #1554 - Fixed Opie-Console name in .desktop file (mickeyl) | 17 | * #1554 - Fixed Opie-Console name in .desktop file (mickeyl) |
18 | * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke) | 18 | * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke) |
19 | * #1558 - Fixed opie-login breaking opie startup (mickeyl) | 19 | * #1558 - Fixed opie-login breaking opie startup (mickeyl) |
20 | * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar) | ||
20 | * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw) | 21 | * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw) |
21 | 22 | ||
22 | Internal | 23 | Internal |
23 | -------- | 24 | -------- |
24 | * Work around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl) | 25 | * Work around bug in Qt/Embedded 2.3.10: qt_version() returns 231 (mickeyl) |
25 | * Killed the need for weak symbols in QtE (zecke) | 26 | * Killed the need for weak symbols in QtE (zecke) |
26 | 27 | ||
27 | 2005-02-03Opie 1.1.9 | 28 | 2005-02-03Opie 1.1.9 |
28 | 29 | ||
29 | New Features | 30 | New Features |
30 | ------------ | 31 | ------------ |
31 | * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) | 32 | * Number of icon columns in Launcher is customizable through Launcher.conf (hrw,zecke,mickeyl) |
32 | * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) | 33 | * Number of icon columns in Launcher is customizable through LauncherSettings (mickeyl) |
33 | * Usability enhancements in OpieIRC (skyhusker) | 34 | * Usability enhancements in OpieIRC (skyhusker) |
34 | 35 | ||
35 | Fixed Bugs | 36 | Fixed Bugs |
36 | ---------- | 37 | ---------- |
37 | * #1501 - Fixed bug in todo sql backend (eilers) | 38 | * #1501 - Fixed bug in todo sql backend (eilers) |
38 | * #1505 - Added more Swap sizes in memoryapplet (mickeyl) | 39 | * #1505 - Added more Swap sizes in memoryapplet (mickeyl) |
39 | * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) | 40 | * #1525 - Hopefully fixed double alarms and not removing alarms set with the Clock application (zecke) |
40 | * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) | 41 | * #1533 - Security Owner Dialog (shown in case of unsuccessfull authentiacation) wasn't able to display information in non latin1 encoding (zecke) |
41 | * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) | 42 | * n.a. - Removed hard coded font sizes in a couple of inputmethods (mickeyl) |
42 | * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) | 43 | * n.a. - Removed MediumDlg appearing prior to FirstUsage wizard (i.e. calibration) (mickeyl) |
43 | * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) | 44 | * n.a. - Fixed numerous buglets in OpieIRC (skyhusker) |
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 | |||
@@ -566,48 +566,53 @@ void BackupAndRestore::rescanFolder(QString directory) | |||
566 | else | 566 | else |
567 | { | 567 | { |
568 | // If it is a backup file add to list. | 568 | // If it is a backup file add to list. |
569 | if(file->fileName().contains(EXTENSION)) | 569 | if(file->fileName().contains(EXTENSION)) |
570 | (void)new QListViewItem(restoreList, file->fileName()); | 570 | (void)new QListViewItem(restoreList, file->fileName()); |
571 | } | 571 | } |
572 | ++it; | 572 | ++it; |
573 | } | 573 | } |
574 | } | 574 | } |
575 | 575 | ||
576 | /** | 576 | /** |
577 | * Restore a backup file. | 577 | * Restore a backup file. |
578 | * Report errors or success | 578 | * Report errors or success |
579 | */ | 579 | */ |
580 | void BackupAndRestore::restore() | 580 | void BackupAndRestore::restore() |
581 | { | 581 | { |
582 | QListViewItem *restoreItem = restoreList->currentItem(); | 582 | QListViewItem *restoreItem = restoreList->currentItem(); |
583 | if(!restoreItem) | 583 | if(!restoreItem) |
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()]; |
596 | 601 | ||
597 | restoreFile += "/" + restoreItem->text(0); | 602 | restoreFile += "/" + restoreItem->text(0); |
598 | 603 | ||
599 | odebug << restoreFile << oendl; | 604 | odebug << restoreFile << oendl; |
600 | 605 | ||
601 | //check if backup file come from opie 1.0.x | 606 | //check if backup file come from opie 1.0.x |
602 | 607 | ||
603 | QString commandLine = QString( "tar -tzf %1 | grep Applications/backup/exclude" ).arg( restoreFile.latin1() ); | 608 | QString commandLine = QString( "tar -tzf %1 | grep Applications/backup/exclude" ).arg( restoreFile.latin1() ); |
604 | 609 | ||
605 | int r = system( commandLine ); | 610 | int r = system( commandLine ); |
606 | 611 | ||
607 | QString startDir; | 612 | QString startDir; |
608 | 613 | ||
609 | if( r != 0 ) //Applications/backup/exclude not found - old backup file | 614 | if( r != 0 ) //Applications/backup/exclude not found - old backup file |
610 | { | 615 | { |
611 | startDir = QString( "/" ); | 616 | startDir = QString( "/" ); |
612 | } else | 617 | } else |
613 | { | 618 | { |