author | zautrix <zautrix> | 2004-08-01 14:19:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-01 14:19:41 (UTC) |
commit | 3a4186926d078692ad3c2261b70406c391f27554 (patch) (side-by-side diff) | |
tree | 6f71c51606a786711ca2885beb8ee20068e3ccd0 /korganizer | |
parent | 43d6cf3619675856333d82ae2fcad6ce81d824b8 (diff) | |
download | kdepimpi-3a4186926d078692ad3c2261b70406c391f27554.zip kdepimpi-3a4186926d078692ad3c2261b70406c391f27554.tar.gz kdepimpi-3a4186926d078692ad3c2261b70406c391f27554.tar.bz2 |
Fixed sync config
-rw-r--r-- | korganizer/mainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index d0d1f3b..298fa82 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -859,5 +859,5 @@ int MainWindow::ringSync() int i; QTime timer; - KConfig *config = KOGlobals::config(); + KConfig config ( locateLocal( "config","syncprofilesrc" ) ); QStringList syncProfileNames = KOPrefs::instance()->mSyncProfileNames; KSyncProfile* temp = new KSyncProfile (); @@ -866,5 +866,5 @@ int MainWindow::ringSync() mCurrentSyncProfile = i; temp->setName(syncProfileNames[mCurrentSyncProfile]); - temp->readConfig(config); + temp->readConfig(&config); if ( temp->getIncludeInRingSync() && ( i < 1 || i > 2 )) { setCaption(i18n("Profile ")+syncProfileNames[mCurrentSyncProfile]+ i18n(" is synced ... ")); @@ -957,8 +957,8 @@ void MainWindow::slotSyncMenu( int action ) mView->setSyncDevice(KOPrefs::instance()->mSyncProfileNames[mCurrentSyncProfile] ); mView->setSyncName( KOPrefs::instance()->mLocalMachineName ); - KConfig *config = KOGlobals::config(); + KConfig config ( locateLocal( "config","syncprofilesrc" ) ); KSyncProfile* temp = new KSyncProfile (); temp->setName(KOPrefs::instance()->mSyncProfileNames[mCurrentSyncProfile]); - temp->readConfig(config); + temp->readConfig(&config); KOPrefs::instance()->mAskForPreferences = temp->getAskForPreferences(); KOPrefs::instance()->mSyncAlgoPrefs = temp->getSyncPrefs(); |