-rw-r--r-- | korganizer/koprefs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index e679bd3..65f0342 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -488,24 +488,25 @@ void KOPrefs::deleteCalendar( int num ) | |||
488 | while ( kkf ) { | 488 | while ( kkf ) { |
489 | if ( kkf->mCalNumber == num ) { | 489 | if ( kkf->mCalNumber == num ) { |
490 | qDebug("KOPrefs::deleteCalendar %d ", num ); | 490 | qDebug("KOPrefs::deleteCalendar %d ", num ); |
491 | mCalendars.remove( kkf ); | 491 | mCalendars.remove( kkf ); |
492 | delete kkf; | 492 | delete kkf; |
493 | return; | 493 | return; |
494 | } | 494 | } |
495 | kkf = mCalendars.next(); | 495 | kkf = mCalendars.next(); |
496 | } | 496 | } |
497 | } | 497 | } |
498 | QColor KOPrefs::defaultColor( int calNum ) const | 498 | QColor KOPrefs::defaultColor( int calNum ) const |
499 | { | 499 | { |
500 | if ( calNum == 1 ) return mEventColor; | ||
500 | return (mDefCalColors[calNum-1])->mDefaultColor; | 501 | return (mDefCalColors[calNum-1])->mDefaultColor; |
501 | } | 502 | } |
502 | void KOPrefs::usrWriteConfig() | 503 | void KOPrefs::usrWriteConfig() |
503 | { | 504 | { |
504 | config()->setGroup("General"); | 505 | config()->setGroup("General"); |
505 | config()->writeEntry("Custom Categories",mCustomCategories); | 506 | config()->writeEntry("Custom Categories",mCustomCategories); |
506 | 507 | ||
507 | config()->setGroup("Personal Settings"); | 508 | config()->setGroup("Personal Settings"); |
508 | config()->writeEntry("user_name",mName); | 509 | config()->writeEntry("user_name",mName); |
509 | config()->writeEntry("user_email",mEmail); | 510 | config()->writeEntry("user_email",mEmail); |
510 | 511 | ||
511 | config()->setGroup("Category Colors"); | 512 | config()->setGroup("Category Colors"); |