summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncmanager.cpp
authorzautrix <zautrix>2004-10-24 13:35:47 (UTC)
committer zautrix <zautrix>2004-10-24 13:35:47 (UTC)
commit42f22a904fb6440a7b4071b2f4f148bee5f71cc0 (patch) (side-by-side diff)
tree547a887b3f9136995c686763ccd30cfbb9f731c2 /libkdepim/ksyncmanager.cpp
parenta04e4d7e6495e985879390e24cc0174d8f867dbf (diff)
downloadkdepimpi-42f22a904fb6440a7b4071b2f4f148bee5f71cc0.zip
kdepimpi-42f22a904fb6440a7b4071b2f4f148bee5f71cc0.tar.gz
kdepimpi-42f22a904fb6440a7b4071b2f4f148bee5f71cc0.tar.bz2
desktop changes
Diffstat (limited to 'libkdepim/ksyncmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp10
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
@@ -97,37 +97,39 @@ void KSyncManager::fillSyncMenu()
mSyncMenu->insertSeparator();
KConfig config ( locateLocal( "config","ksyncprofilesrc" ) );
config.setGroup("General");
QStringList prof = config.readListEntry("SyncProfileNames");
mLocalMachineName = config.readEntry("LocalMachineName","undefined");
if ( prof.count() < 2 ) {
prof.clear();
+ QString externalName;
#ifdef DESKTOP_VERSION
#ifdef _WIN32_
- prof << i18n("OutLook(not_implemented)");
+ externalName = "OutLook(not_implemented)";
#else
- prof << i18n("KDE_Desktop");
+ externalName = "KDE_Desktop";
#endif
#else
- prof << i18n("Sharp_DTM");
+ externalName = "Sharp_DTM";
#endif
+ prof << externalName;
prof << i18n("Local_file");
prof << i18n("Last_file");
KSyncProfile* temp = new KSyncProfile ();
temp->setName( prof[0] );
temp->writeConfig(&config);
temp->setName( prof[1] );
temp->writeConfig(&config);
temp->setName( prof[2] );
temp->writeConfig(&config);
config.setGroup("General");
config.writeEntry("SyncProfileNames",prof);
- config.writeEntry("ExternSyncProfiles","Sharp_DTM");
+ config.writeEntry("ExternSyncProfiles",externalName);
config.sync();
delete temp;
}
mExternSyncProfiles = config.readListEntry("ExternSyncProfiles");
mSyncProfileNames = prof;
unsigned int i;
for ( i = 0; i < prof.count(); ++i ) {
mSyncMenu->insertItem( prof[i], 1000+i );