summaryrefslogtreecommitdiffabout
path: root/libkdepim
Side-by-side diff
Diffstat (limited to 'libkdepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprefsdialog.cpp9
-rw-r--r--libkdepim/ksyncprofile.cpp8
2 files changed, 8 insertions, 9 deletions
diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp
index 2f38c83..59c8418 100644
--- a/libkdepim/ksyncprefsdialog.cpp
+++ b/libkdepim/ksyncprefsdialog.cpp
@@ -545,3 +545,3 @@ void KSyncPrefsDialog::usrReadConfig()
KConfig config ( locateLocal( "config","syncprofilesrc" ) );
- config.setGroup("SyncProfiles");
+ config.setGroup("General");
mSyncProfileNames =config.readListEntry("SyncProfileNames");
@@ -569,3 +569,2 @@ void KSyncPrefsDialog::usrWriteConfig()
KConfig config ( locateLocal( "config","syncprofilesrc" ) );
- config.setGroup("SyncProfiles");
KSyncProfile* prof = mSyncProfiles.first();
@@ -577,5 +576,5 @@ void KSyncPrefsDialog::usrWriteConfig()
//KOPrefs::instance()->mLocalMachineName = mMyMachineName->text();
+ config.setGroup("General");
config.writeEntry("SyncProfileNames",mSyncProfileNames);
- QString name = mMyMachineName->text();
- config.writeEntry("LocalMachineName",name);
+ config.writeEntry("LocalMachineName",mMyMachineName->text());
}
@@ -586,3 +585,3 @@ void KSyncPrefsDialog::helpDevice()
#ifdef _WIN32_
- hint += "leave empty for Irda\n"
+ hint += "Leave empty for Irda.\n"
"com1:\n(first serial port)\n"
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp
index 425285e..fcbb326 100644
--- a/libkdepim/ksyncprofile.cpp
+++ b/libkdepim/ksyncprofile.cpp
@@ -98,4 +98,4 @@ void KSyncProfile::readConfig(KConfig *config )
{
- config->setGroup("SyncProfiles");
- QString prefix = "Profile_"+mName+"_";
+ config->setGroup(mName);
+ QString prefix = "";
//mName = config->readEntry( prefix+ "Name", mName );
@@ -129,4 +129,4 @@ void KSyncProfile::writeConfig( KConfig * config )
{
- config->setGroup("SyncProfiles");
- QString prefix = "Profile_"+mName+"_";
+ config->setGroup(mName );
+ QString prefix = "";
// config->writeEntry( prefix+ "Name", mName );