From 62aad63f824740f15357c28e6bb61fbdf2120585 Mon Sep 17 00:00:00 2001 From: ar Date: Tue, 01 Feb 2005 19:54:57 +0000 Subject: - fix bug #1536 custom locations are stored and removed immadiately after add and remove in location list. --- diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp index d028379..8928cda 100644 --- a/noncore/settings/backup/backuprestore.cpp +++ b/noncore/settings/backup/backuprestore.cpp @@ -87,7 +87,6 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f connect( restoreSource, SIGNAL( activated( int ) ), this, SLOT( sourceDirChanged( int ) ) ); connect( addLocationButton, SIGNAL( clicked() ), this, SLOT( addLocation() ) ); connect( removeLocationButton, SIGNAL( clicked() ), this, SLOT( removeLocation() ) ); - connect( saveLocationsButton, SIGNAL( clicked() ), this, SLOT( saveLocations() ) ); connect( selectLocationButton, SIGNAL( clicked() ), this, SLOT( selectLocation() ) ); //add directorys for backing up @@ -727,6 +726,7 @@ void BackupAndRestore::addLocation() { (void) new QListViewItem( locationList, locationEdit->text() ); locationEdit->setText( "" ); + saveLocations(); } } @@ -735,6 +735,7 @@ void BackupAndRestore::removeLocation() if ( locationList->selectedItem() ) { delete( locationList->selectedItem() ); + saveLocations(); } } diff --git a/noncore/settings/backup/backuprestorebase.ui b/noncore/settings/backup/backuprestorebase.ui index 6186d68..cca3dee 100644 --- a/noncore/settings/backup/backuprestorebase.ui +++ b/noncore/settings/backup/backuprestorebase.ui @@ -11,8 +11,8 @@ 0 0 - 278 - 298 + 246 + 338 @@ -25,16 +25,16 @@ layoutSpacing - + margin - 0 + 2 spacing - 0 + 2 - + QTabWidget name @@ -65,136 +65,119 @@ spacing 2 - - QLayoutWidget + + QComboBox + + name + storeToLocation + + + sizePolicy + + 3 + 1 + + + + + QLabel + + name + labelDestination + + + text + Destination + + + + QPushButton + + name + backupButton + + + text + &Backup + + + + QListView + + + text + Applications + + + clickable + true + + + resizeable + true + + name - Layout1 + backupList + + + allColumnsShowFocus + true + + + rootIsDecorated + true + + + + QButtonGroup + + name + frame_type + + + title + Type + + + layoutMargin + + + layoutSpacing margin - 0 + 6 spacing - 6 + 2 - - QComboBox - - name - storeToLocation - - - sizePolicy - - 3 - 1 - - - - QLabel + QRadioButton name - TextLabel1 + cb_type_fullbackup text - Destination + Full Backup (Root File System) - - QPushButton + + QRadioButton name - backupButton + cb_type_userdata text - &Backup + User Data (Configuration + PIM) - - - QButtonGroup - name - frame_type - - - title - Type - - - layoutMargin - - - layoutSpacing - - - - margin - 4 - - - spacing - 2 - - - QRadioButton - - name - cb_type_userdata - - - text - User Data (Configuration + PIM) - - - checked - true - - - - QRadioButton - - name - cb_type_fullbackup - - - text - Full Backup (Root File System) - - - - - - QListView - - - text - Applications - - - clickable - true - - - resizeable - true - - - - name - backupList - - - allColumnsShowFocus - true - - - rootIsDecorated + checked true @@ -219,7 +202,7 @@ spacing - 4 + 2 QComboBox @@ -243,7 +226,7 @@ QLabel name - TextLabel1_2 + destinationLabel text @@ -297,97 +280,86 @@ spacing - 4 + 2 - - QListView - - - text - Locations - - - clickable - true - - - resizeable - true - - + + QPushButton name - locationList + selectLocationButton - - - QPushButton - name - addLocationButton + sizePolicy + + 0 + 0 + + + + maximumSize + + 20 + 30 + text - Add + ... - - QPushButton + + QLineEdit name - removeLocationButton - - - text - Remove + locationEdit - + QPushButton name - saveLocationsButton + addLocationButton text - Save + Add - + QPushButton name - selectLocationButton - - - sizePolicy - - 0 - 0 - - - - maximumSize - - 20 - 30 - + removeLocationButton text - ... + Remove - - QLineEdit + + QListView + + + text + Locations + + + clickable + true + + + resizeable + true + + name - locationEdit + locationList - + -- cgit v0.9.0.2