author | zautrix <zautrix> | 2004-08-01 19:29:37 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-01 19:29:37 (UTC) |
commit | 062113379f93ed645d2f246183c89eb8b6814834 (patch) (side-by-side diff) | |
tree | 34e3a96d06b40d24c19c4e6814a65f290734563d | |
parent | 3bdbe8154381abc3fca2aaf5c055b59c2f8637a2 (diff) | |
download | kdepimpi-062113379f93ed645d2f246183c89eb8b6814834.zip kdepimpi-062113379f93ed645d2f246183c89eb8b6814834.tar.gz kdepimpi-062113379f93ed645d2f246183c89eb8b6814834.tar.bz2 |
sync dialog fixes
-rw-r--r-- | korganizer/mainwindow.cpp | 10 | ||||
-rw-r--r-- | libkdepim/ksyncprefsdialog.cpp | 9 | ||||
-rw-r--r-- | libkdepim/ksyncprofile.cpp | 8 |
3 files changed, 13 insertions, 14 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 298fa82..44b1264 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -821,3 +821,3 @@ void MainWindow::fillSyncMenu() KConfig config ( locateLocal( "config","syncprofilesrc" ) ); - config.setGroup("SyncProfiles"); + config.setGroup("General"); QStringList prof = config.readListEntry("SyncProfileNames"); @@ -826,5 +826,5 @@ void MainWindow::fillSyncMenu() prof.clear(); - prof << i18n("Sharp-DTM"); - prof << i18n("Local file"); - prof << i18n("Last file"); + prof << i18n("Sharp_DTM"); + prof << i18n("Local_file"); + prof << i18n("Last_file"); KSyncProfile* temp = new KSyncProfile (); @@ -836,3 +836,3 @@ void MainWindow::fillSyncMenu() temp->writeConfig(&config); - config.setGroup("SyncProfiles"); + config.setGroup("General"); config.writeEntry("SyncProfileNames",prof); 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 ); |