summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp22
1 files changed, 18 insertions, 4 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index 75c0b2b..7ca3ee0 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -275,2 +275,3 @@ void KSyncManager::enableQuick( bool ask )
bool autoStart;
+ bool changed = false;
if ( ask ) {
@@ -318,6 +319,15 @@ void KSyncManager::enableQuick( bool ask )
qApp->processEvents();
- mPrefs->mPassiveSyncPw = lepw.text();
- mPrefs->mPassiveSyncPort = lab.text();
+ if ( mPrefs->mPassiveSyncPw != lepw.text() ) {
+ changed = true;
+ mPrefs->mPassiveSyncPw = lepw.text();
+ }
+ if ( mPrefs->mPassiveSyncPort != lab.text() ) {
+ mPrefs->mPassiveSyncPort = lab.text();
+ changed = true;
+ }
autoStart = autostart.isChecked();
- mPrefs->mPassiveSyncWithDesktop = syncdesktop.isChecked();
+ if (mPrefs->mPassiveSyncWithDesktop != syncdesktop.isChecked() ) {
+ changed = true;
+ mPrefs->mPassiveSyncWithDesktop = syncdesktop.isChecked();
+ }
}
@@ -325,2 +335,4 @@ void KSyncManager::enableQuick( bool ask )
autoStart = mPrefs->mPassiveSyncAutoStart;
+ if ( autoStart != mPrefs->mPassiveSyncAutoStart )
+ changed = true;
bool ok;
@@ -342,4 +354,6 @@ void KSyncManager::enableQuick( bool ask )
}
-
mPrefs->mPassiveSyncAutoStart = autoStart;
+ if ( changed ) {
+ mPrefs->writeConfig();
+ }
connect( mServerSocket, SIGNAL ( request_file() ),this, SIGNAL ( request_file() ) );