author | zautrix <zautrix> | 2005-07-06 09:52:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-06 09:52:24 (UTC) |
commit | 3b77a857e17e04e47d22ba6017dd723ed922e3fc (patch) (unidiff) | |
tree | 0ce40d3e6480ae4016e3f2e464c3180be96bdd27 | |
parent | 4ac63cce98fabb59a47970baa2906b2fe8d0f2b0 (diff) | |
download | kdepimpi-3b77a857e17e04e47d22ba6017dd723ed922e3fc.zip kdepimpi-3b77a857e17e04e47d22ba6017dd723ed922e3fc.tar.gz kdepimpi-3b77a857e17e04e47d22ba6017dd723ed922e3fc.tar.bz2 |
fixx
-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 | |||
@@ -520,48 +520,50 @@ QString KOPrefs::calName( int calNum) const | |||
520 | return (mDefCalColors[calNum-1])->mName; | 520 | return (mDefCalColors[calNum-1])->mName; |
521 | } | 521 | } |
522 | QColor KOPrefs::defaultColor( int calNum ) const | 522 | QColor KOPrefs::defaultColor( int calNum ) const |
523 | { | 523 | { |
524 | if ( calNum == 1 ) return mEventColor; | 524 | if ( calNum == 1 ) return mEventColor; |
525 | return (mDefCalColors[calNum-1])->mDefaultColor; | 525 | return (mDefCalColors[calNum-1])->mDefaultColor; |
526 | } | 526 | } |
527 | void KOPrefs::usrWriteConfig() | 527 | void KOPrefs::usrWriteConfig() |
528 | { | 528 | { |
529 | config()->setGroup("General"); | 529 | config()->setGroup("General"); |
530 | config()->writeEntry("Custom Categories",mCustomCategories); | 530 | config()->writeEntry("Custom Categories",mCustomCategories); |
531 | 531 | ||
532 | config()->setGroup("Personal Settings"); | 532 | config()->setGroup("Personal Settings"); |
533 | config()->writeEntry("user_name",mName); | 533 | config()->writeEntry("user_name",mName); |
534 | config()->writeEntry("user_email",mEmail); | 534 | config()->writeEntry("user_email",mEmail); |
535 | 535 | ||
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 ) { |
552 | ++writeCal; | 554 | ++writeCal; |
553 | //qDebug("Write calendar %d %d ", numCal , writeCal); | 555 | //qDebug("Write calendar %d %d ", numCal , writeCal); |
554 | QString prefix = "Cal_" + QString::number( writeCal ); | 556 | QString prefix = "Cal_" + QString::number( writeCal ); |
555 | fc.writeEntry( prefix+"_isStandard", kkf->isStandard ); | 557 | fc.writeEntry( prefix+"_isStandard", kkf->isStandard ); |
556 | fc.writeEntry( prefix+"_isEnabled", kkf->isEnabled ); | 558 | fc.writeEntry( prefix+"_isEnabled", kkf->isEnabled ); |
557 | fc.writeEntry( prefix+"_isAlarmEnabled", kkf->isAlarmEnabled ); | 559 | fc.writeEntry( prefix+"_isAlarmEnabled", kkf->isAlarmEnabled ); |
558 | fc.writeEntry( prefix+"_isReadOnly", kkf->isReadOnly ); | 560 | fc.writeEntry( prefix+"_isReadOnly", kkf->isReadOnly ); |
559 | fc.writeEntry( prefix+"_isRelative", kkf->isRelative ); | 561 | fc.writeEntry( prefix+"_isRelative", kkf->isRelative ); |
560 | fc.writeEntry( prefix+"_Name", kkf->mName); | 562 | fc.writeEntry( prefix+"_Name", kkf->mName); |
561 | fc.writeEntry( prefix+"_FileName", kkf->mFileName); | 563 | fc.writeEntry( prefix+"_FileName", kkf->mFileName); |
562 | fc.writeEntry( prefix+"_SavedFileName", kkf->mSavedFileName); | 564 | fc.writeEntry( prefix+"_SavedFileName", kkf->mSavedFileName); |
563 | fc.writeEntry( prefix+"_Color",kkf->mDefaultColor); | 565 | fc.writeEntry( prefix+"_Color",kkf->mDefaultColor); |
564 | } | 566 | } |
565 | kkf = mCalendars.next(); | 567 | kkf = mCalendars.next(); |
566 | } | 568 | } |
567 | ++numCal; | 569 | ++numCal; |