summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}