summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-08-02 01:14:33 (UTC)
committer zautrix <zautrix>2004-08-02 01:14:33 (UTC)
commitf6a823824e6a8be3d842e99b43dacd495bb02ba4 (patch) (side-by-side diff)
tree09f21069cd63a5e73b9fe735d82487d35e47033b
parent54157cb44316de72d776cfae70bdadf6c52f4773 (diff)
downloadkdepimpi-f6a823824e6a8be3d842e99b43dacd495bb02ba4.zip
kdepimpi-f6a823824e6a8be3d842e99b43dacd495bb02ba4.tar.gz
kdepimpi-f6a823824e6a8be3d842e99b43dacd495bb02ba4.tar.bz2
Hack, hack, hack ...
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp1
-rw-r--r--libkdepim/ksyncprefsdialog.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index cbe2a10..53c079c 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -869,4 +869,5 @@ Event* CalendarView::getLastSyncEvent()
}
+// probaly useless
void CalendarView::setupExternSyncProfiles()
{
diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp
index 59c8418..67a3f52 100644
--- a/libkdepim/ksyncprefsdialog.cpp
+++ b/libkdepim/ksyncprefsdialog.cpp
@@ -569,6 +569,10 @@ void KSyncPrefsDialog::usrWriteConfig()
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();
}
@@ -577,5 +581,7 @@ void KSyncPrefsDialog::usrWriteConfig()
config.setGroup("General");
config.writeEntry("SyncProfileNames",mSyncProfileNames);
+ config.writeEntry("ExternSyncProfiles",externalSyncProfileNames);
config.writeEntry("LocalMachineName",mMyMachineName->text());
+ config.sync();
}