-rw-r--r-- | libkdepim/ksyncmanager.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index 554c6e5..4390a06 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp | |||
@@ -101,17 +101,19 @@ void KSyncManager::fillSyncMenu() | |||
101 | QStringList prof = config.readListEntry("SyncProfileNames"); | 101 | QStringList prof = config.readListEntry("SyncProfileNames"); |
102 | mLocalMachineName = config.readEntry("LocalMachineName","undefined"); | 102 | mLocalMachineName = config.readEntry("LocalMachineName","undefined"); |
103 | if ( prof.count() < 2 ) { | 103 | if ( prof.count() < 2 ) { |
104 | prof.clear(); | 104 | prof.clear(); |
105 | QString externalName; | ||
105 | #ifdef DESKTOP_VERSION | 106 | #ifdef DESKTOP_VERSION |
106 | #ifdef _WIN32_ | 107 | #ifdef _WIN32_ |
107 | prof << i18n("OutLook(not_implemented)"); | 108 | externalName = "OutLook(not_implemented)"; |
108 | #else | 109 | #else |
109 | prof << i18n("KDE_Desktop"); | 110 | externalName = "KDE_Desktop"; |
110 | #endif | 111 | #endif |
111 | #else | 112 | #else |
112 | prof << i18n("Sharp_DTM"); | 113 | externalName = "Sharp_DTM"; |
113 | #endif | 114 | #endif |
115 | prof << externalName; | ||
114 | prof << i18n("Local_file"); | 116 | prof << i18n("Local_file"); |
115 | prof << i18n("Last_file"); | 117 | prof << i18n("Last_file"); |
116 | KSyncProfile* temp = new KSyncProfile (); | 118 | KSyncProfile* temp = new KSyncProfile (); |
117 | temp->setName( prof[0] ); | 119 | temp->setName( prof[0] ); |
@@ -121,9 +123,9 @@ void KSyncManager::fillSyncMenu() | |||
121 | temp->setName( prof[2] ); | 123 | temp->setName( prof[2] ); |
122 | temp->writeConfig(&config); | 124 | temp->writeConfig(&config); |
123 | config.setGroup("General"); | 125 | config.setGroup("General"); |
124 | config.writeEntry("SyncProfileNames",prof); | 126 | config.writeEntry("SyncProfileNames",prof); |
125 | config.writeEntry("ExternSyncProfiles","Sharp_DTM"); | 127 | config.writeEntry("ExternSyncProfiles",externalName); |
126 | config.sync(); | 128 | config.sync(); |
127 | delete temp; | 129 | delete temp; |
128 | } | 130 | } |
129 | mExternSyncProfiles = config.readListEntry("ExternSyncProfiles"); | 131 | mExternSyncProfiles = config.readListEntry("ExternSyncProfiles"); |