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. --- (limited to 'noncore/settings/backup/backuprestore.cpp') 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(); } } -- cgit v0.9.0.2