-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 @@ -691,3 +691,2 @@ void CalendarView::confSync() } - sp->setLocalMachineName ( KOPrefs::instance()->mLocalMachineName ); sp->usrReadConfig(); diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 589ab2d..d0d1f3b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -823,3 +823,3 @@ void MainWindow::fillSyncMenu() QStringList prof = config.readListEntry("SyncProfileNames"); - + KOPrefs::instance()->mLocalMachineName = config.readEntry("LocalMachineName","undefined"); if ( prof.count() < 3 ) { @@ -836,2 +836,4 @@ void MainWindow::fillSyncMenu() temp->writeConfig(&config); + config.setGroup("SyncProfiles"); + config.writeEntry("SyncProfileNames",prof); config.sync(); diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp index 8d610d8..3df2a3b 100644 --- a/libkdepim/ksyncprefsdialog.cpp +++ b/libkdepim/ksyncprefsdialog.cpp @@ -436,2 +436,3 @@ void KSyncPrefsDialog::usrReadConfig() mSyncProfileNames =config.readListEntry("SyncProfileNames"); + mMyMachineName->setText(config.readEntry("LocalMachineName","undefined")); int i; @@ -465,3 +466,5 @@ void KSyncPrefsDialog::usrWriteConfig() //KOPrefs::instance()->mLocalMachineName = mMyMachineName->text(); - config.writeEntry("SyncProfileNames",&mSyncProfileNames); + config.writeEntry("SyncProfileNames",mSyncProfileNames); + QString name = mMyMachineName->text(); + config.writeEntry("LocalMachineName",name); } |