summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprefsdialog.cpp12
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
@@ -361,19 +361,20 @@ void KSyncPrefsDialog::setupSyncAlgTab()
}
-
-
void KSyncPrefsDialog::readFilter()
{
mFilterKapi.clear();
mFilterKopi.clear();
- mFilterKopi.append(i18n("No Filter") );
- mFilterKapi.append(i18n("No Filter") );
KConfig cfgko(locateLocal("config","korganizerrc"));
KConfig cfgka(locateLocal("config","kaddressbookrc"));
cfgko.setGroup("General");
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();
mFilterInCal->clear();
mFilterOutAB->clear();
@@ -388,7 +389,6 @@ void KSyncPrefsDialog::readFilter()
mFilterInAB->insertStringList( temp );
}
-
void KSyncPrefsDialog::slotOK()
{
if ( mMyMachineName->text() == "undefined" ) {