-rw-r--r-- | libkdepim/ksyncprefsdialog.cpp | 5 |
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 @@ -431,12 +431,13 @@ QStringList KSyncPrefsDialog::getSyncProfileNames() void KSyncPrefsDialog::usrReadConfig() { //KConfig *config = KOGlobals::config(); KConfig config ( locateLocal( "config","syncprofilesrc" ) ); config.setGroup("SyncProfiles"); mSyncProfileNames =config.readListEntry("SyncProfileNames"); + mMyMachineName->setText(config.readEntry("LocalMachineName","undefined")); int i; KSyncProfile* temp ; mSyncProfiles.clear(); for ( i = 0; i < mSyncProfileNames.count();++i ) { temp = new KSyncProfile (); temp->setName( mSyncProfileNames[i] ); @@ -460,9 +461,11 @@ void KSyncPrefsDialog::usrWriteConfig() while ( prof ) { prof->writeConfig(&config); prof = mSyncProfiles.next(); } //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); } |