summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprefsdialog.cpp
Side-by-side diff
Diffstat (limited to 'libkdepim/ksyncprefsdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/ksyncprefsdialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp
index 8d610d8..3df2a3b 100644
--- a/libkdepim/ksyncprefsdialog.cpp
+++ b/libkdepim/ksyncprefsdialog.cpp
@@ -435,4 +435,5 @@ void KSyncPrefsDialog::usrReadConfig()
config.setGroup("SyncProfiles");
mSyncProfileNames =config.readListEntry("SyncProfileNames");
+ mMyMachineName->setText(config.readEntry("LocalMachineName","undefined"));
int i;
KSyncProfile* temp ;
@@ -464,5 +465,7 @@ void KSyncPrefsDialog::usrWriteConfig()
//KOPrefs::instance()->mSyncProfileNames = mSyncProfileNames;
//KOPrefs::instance()->mLocalMachineName = mMyMachineName->text();
- config.writeEntry("SyncProfileNames",&mSyncProfileNames);
+ config.writeEntry("SyncProfileNames",mSyncProfileNames);
+ QString name = mMyMachineName->text();
+ config.writeEntry("LocalMachineName",name);
}