Diffstat (limited to 'libkdepim/ksyncprefsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/ksyncprefsdialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp index 6e42fd4..2101bbb 100644 --- a/libkdepim/ksyncprefsdialog.cpp +++ b/libkdepim/ksyncprefsdialog.cpp @@ -363,4 +363,2 @@ void KSyncPrefsDialog::setupSyncAlgTab() - - void KSyncPrefsDialog::readFilter() @@ -369,4 +367,2 @@ void KSyncPrefsDialog::readFilter() mFilterKopi.clear(); - mFilterKopi.append(i18n("No Filter") ); - mFilterKapi.append(i18n("No Filter") ); KConfig cfgko(locateLocal("config","korganizerrc")); @@ -375,3 +371,8 @@ void KSyncPrefsDialog::readFilter() mFilterKopi = cfgko.readListEntry("CalendarFilters"); - mFilterKapi = mFilterKopi; + cfgka.setGroup("Filter"); + int count = cfgka.readNumEntry( "Count", 0 ); + for ( int i = 0; i < count; i++ ) { + cfgka.setGroup("Filter_"+QString::number( i ) ); + mFilterKapi.append( cfgka.readEntry("Name", "internal error") ); + } mFilterOutCal->clear(); @@ -390,3 +391,2 @@ void KSyncPrefsDialog::readFilter() - void KSyncPrefsDialog::slotOK() |