-rw-r--r-- | korganizer/calendarview.cpp | 1 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 4 | ||||
-rw-r--r-- | libkdepim/ksyncprefsdialog.cpp | 5 |
3 files changed, 7 insertions, 3 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 387b751..cfc6b10 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -689,7 +689,6 @@ void CalendarView::confSync() if ( ! sp ) { sp = new KSyncPrefsDialog( this, "syncprefs", true ); } - sp->setLocalMachineName ( KOPrefs::instance()->mLocalMachineName ); sp->usrReadConfig(); #ifndef DESKTOP_VERSION sp->showMaximized(); diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 589ab2d..d0d1f3b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -821,7 +821,7 @@ void MainWindow::fillSyncMenu() KConfig config ( locateLocal( "config","syncprofilesrc" ) ); config.setGroup("SyncProfiles"); QStringList prof = config.readListEntry("SyncProfileNames"); - + KOPrefs::instance()->mLocalMachineName = config.readEntry("LocalMachineName","undefined"); if ( prof.count() < 3 ) { prof.clear(); prof << i18n("Sharp-DTM"); @@ -834,6 +834,8 @@ void MainWindow::fillSyncMenu() temp->writeConfig(&config); temp->setName( prof[2] ); temp->writeConfig(&config); + config.setGroup("SyncProfiles"); + config.writeEntry("SyncProfileNames",prof); config.sync(); delete temp; } diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp index 8d610d8..3df2a3b 100644 --- a/libkdepim/ksyncprefsdialog.cpp +++ b/libkdepim/ksyncprefsdialog.cpp @@ -434,6 +434,7 @@ void KSyncPrefsDialog::usrReadConfig() KConfig config ( locateLocal( "config","syncprofilesrc" ) ); config.setGroup("SyncProfiles"); mSyncProfileNames =config.readListEntry("SyncProfileNames"); + mMyMachineName->setText(config.readEntry("LocalMachineName","undefined")); int i; KSyncProfile* temp ; mSyncProfiles.clear(); @@ -463,6 +464,8 @@ 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); } |