-rw-r--r-- | korganizer/koprefs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index f1f1442..138028d 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -536,16 +536,18 @@ void KOPrefs::usrWriteConfig() | |||
536 | config()->setGroup("Category Colors"); | 536 | config()->setGroup("Category Colors"); |
537 | QDictIterator<QColor> it(mCategoryColors); | 537 | QDictIterator<QColor> it(mCategoryColors); |
538 | while (it.current()) { | 538 | while (it.current()) { |
539 | config()->writeEntry(it.currentKey(),*(it.current())); | 539 | config()->writeEntry(it.currentKey(),*(it.current())); |
540 | ++it; | 540 | ++it; |
541 | } | 541 | } |
542 | KConfig fc (locateLocal("config","kopicalendarrc")); | 542 | KConfig fc (locateLocal("config","kopicalendarrc")); |
543 | fc.setGroup("CC"); | 543 | fc.setGroup("CC"); |
544 | fc.deleteGroup( "CC"); | ||
545 | fc.setGroup("CC"); | ||
544 | fc.writeEntry("NumberCalendars",mCalendars.count()); | 546 | fc.writeEntry("NumberCalendars",mCalendars.count()); |
545 | int numCal = 1; | 547 | int numCal = 1; |
546 | int writeCal = 0; | 548 | int writeCal = 0; |
547 | while ( numCal < mNextAvailableCalendar ) { | 549 | while ( numCal < mNextAvailableCalendar ) { |
548 | KopiCalendarFile * kkf = mCalendars.first(); | 550 | KopiCalendarFile * kkf = mCalendars.first(); |
549 | while ( kkf ) { | 551 | while ( kkf ) { |
550 | //qDebug("cal num %d %d ", kkf->mCalNumber, numCal); | 552 | //qDebug("cal num %d %d ", kkf->mCalNumber, numCal); |
551 | if ( kkf->mCalNumber == numCal ) { | 553 | if ( kkf->mCalNumber == numCal ) { |