From f6a823824e6a8be3d842e99b43dacd495bb02ba4 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 02 Aug 2004 01:14:33 +0000 Subject: Hack, hack, hack ... --- (limited to 'libkdepim') diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp index 59c8418..67a3f52 100644 --- a/libkdepim/ksyncprefsdialog.cpp +++ b/libkdepim/ksyncprefsdialog.cpp @@ -568,15 +568,21 @@ void KSyncPrefsDialog::usrWriteConfig() //KConfig *config = KOGlobals::config(); KConfig config ( locateLocal( "config","syncprofilesrc" ) ); KSyncProfile* prof = mSyncProfiles.first(); + QStringList externalSyncProfileNames; + externalSyncProfileNames.append("Sharp_DTM");; while ( prof ) { prof->writeConfig(&config); + if ( prof->getIsPhoneSync( ) ) + externalSyncProfileNames.append(prof->getName( ) ); prof = mSyncProfiles.next(); } //KOPrefs::instance()->mSyncProfileNames = mSyncProfileNames; //KOPrefs::instance()->mLocalMachineName = mMyMachineName->text(); config.setGroup("General"); config.writeEntry("SyncProfileNames",mSyncProfileNames); + config.writeEntry("ExternSyncProfiles",externalSyncProfileNames); config.writeEntry("LocalMachineName",mMyMachineName->text()); + config.sync(); } void KSyncPrefsDialog::helpDevice() -- cgit v0.9.0.2