author | zautrix <zautrix> | 2004-08-01 13:59:52 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-01 13:59:52 (UTC) |
commit | 43d6cf3619675856333d82ae2fcad6ce81d824b8 (patch) (unidiff) | |
tree | 40629720fce9e0840fc4ab50ab1ef746a7c07375 /korganizer | |
parent | 47a3a79ddde4ab63d34ddb0ffaa92d65f04de8ad (diff) | |
download | kdepimpi-43d6cf3619675856333d82ae2fcad6ce81d824b8.zip kdepimpi-43d6cf3619675856333d82ae2fcad6ce81d824b8.tar.gz kdepimpi-43d6cf3619675856333d82ae2fcad6ce81d824b8.tar.bz2 |
fixed sync config
-rw-r--r-- | korganizer/calendarview.cpp | 1 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 4 |
2 files changed, 3 insertions, 2 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() | |||
689 | if ( ! sp ) { | 689 | if ( ! sp ) { |
690 | sp = new KSyncPrefsDialog( this, "syncprefs", true ); | 690 | sp = new KSyncPrefsDialog( this, "syncprefs", true ); |
691 | } | 691 | } |
692 | sp->setLocalMachineName ( KOPrefs::instance()->mLocalMachineName ); | ||
693 | sp->usrReadConfig(); | 692 | sp->usrReadConfig(); |
694 | #ifndef DESKTOP_VERSION | 693 | #ifndef DESKTOP_VERSION |
695 | sp->showMaximized(); | 694 | 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() | |||
821 | KConfig config ( locateLocal( "config","syncprofilesrc" ) ); | 821 | KConfig config ( locateLocal( "config","syncprofilesrc" ) ); |
822 | config.setGroup("SyncProfiles"); | 822 | config.setGroup("SyncProfiles"); |
823 | QStringList prof = config.readListEntry("SyncProfileNames"); | 823 | QStringList prof = config.readListEntry("SyncProfileNames"); |
824 | 824 | KOPrefs::instance()->mLocalMachineName = config.readEntry("LocalMachineName","undefined"); | |
825 | if ( prof.count() < 3 ) { | 825 | if ( prof.count() < 3 ) { |
826 | prof.clear(); | 826 | prof.clear(); |
827 | prof << i18n("Sharp-DTM"); | 827 | prof << i18n("Sharp-DTM"); |
@@ -834,6 +834,8 @@ void MainWindow::fillSyncMenu() | |||
834 | temp->writeConfig(&config); | 834 | temp->writeConfig(&config); |
835 | temp->setName( prof[2] ); | 835 | temp->setName( prof[2] ); |
836 | temp->writeConfig(&config); | 836 | temp->writeConfig(&config); |
837 | config.setGroup("SyncProfiles"); | ||
838 | config.writeEntry("SyncProfileNames",prof); | ||
837 | config.sync(); | 839 | config.sync(); |
838 | delete temp; | 840 | delete temp; |
839 | } | 841 | } |