summaryrefslogtreecommitdiffabout
path: root/libkdepim
authorzautrix <zautrix>2005-01-14 22:24:22 (UTC)
committer zautrix <zautrix>2005-01-14 22:24:22 (UTC)
commitd937154e5ae3691dda55fac9114142f92e29e37b (patch) (unidiff)
tree8c8960d6f4fb9a097a462240953a1f5a5603c5c5 /libkdepim
parentee9df90c4898f4ed624be2d4e94918fcc80060e9 (diff)
downloadkdepimpi-d937154e5ae3691dda55fac9114142f92e29e37b.zip
kdepimpi-d937154e5ae3691dda55fac9114142f92e29e37b.tar.gz
kdepimpi-d937154e5ae3691dda55fac9114142f92e29e37b.tar.bz2
filtersettings complete
Diffstat (limited to 'libkdepim') (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()
361 361
362} 362}
363 363
364
365
366void KSyncPrefsDialog::readFilter() 364void KSyncPrefsDialog::readFilter()
367{ 365{
368 mFilterKapi.clear(); 366 mFilterKapi.clear();
369 mFilterKopi.clear(); 367 mFilterKopi.clear();
370 mFilterKopi.append(i18n("No Filter") );
371 mFilterKapi.append(i18n("No Filter") );
372 KConfig cfgko(locateLocal("config","korganizerrc")); 368 KConfig cfgko(locateLocal("config","korganizerrc"));
373 KConfig cfgka(locateLocal("config","kaddressbookrc")); 369 KConfig cfgka(locateLocal("config","kaddressbookrc"));
374 cfgko.setGroup("General"); 370 cfgko.setGroup("General");
375 mFilterKopi = cfgko.readListEntry("CalendarFilters"); 371 mFilterKopi = cfgko.readListEntry("CalendarFilters");
376 mFilterKapi = mFilterKopi; 372 cfgka.setGroup("Filter");
373 int count = cfgka.readNumEntry( "Count", 0 );
374 for ( int i = 0; i < count; i++ ) {
375 cfgka.setGroup("Filter_"+QString::number( i ) );
376 mFilterKapi.append( cfgka.readEntry("Name", "internal error") );
377 }
377 mFilterOutCal->clear(); 378 mFilterOutCal->clear();
378 mFilterInCal->clear(); 379 mFilterInCal->clear();
379 mFilterOutAB->clear(); 380 mFilterOutAB->clear();
@@ -388,7 +389,6 @@ void KSyncPrefsDialog::readFilter()
388 mFilterInAB->insertStringList( temp ); 389 mFilterInAB->insertStringList( temp );
389} 390}
390 391
391
392void KSyncPrefsDialog::slotOK() 392void KSyncPrefsDialog::slotOK()
393{ 393{
394 if ( mMyMachineName->text() == "undefined" ) { 394 if ( mMyMachineName->text() == "undefined" ) {