-rw-r--r-- | korganizer/koprefsdialog.cpp | 14 | ||||
-rw-r--r-- | korganizer/koprefsdialog.h | 1 |
2 files changed, 11 insertions, 4 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 7ba1392..ebcff33 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -1428,3 +1428,3 @@ void KOPrefsDialog::usrReadConfig() | |||
1428 | mAlarmBeepInterval->setValue(KOPrefs::instance()->mAlarmBeepInterval ); | 1428 | mAlarmBeepInterval->setValue(KOPrefs::instance()->mAlarmBeepInterval ); |
1429 | 1429 | mCatDefaultColor = KOPrefs::instance()->mEventColor; | |
1430 | } | 1430 | } |
@@ -1434,4 +1434,2 @@ void KOPrefsDialog::usrWriteConfig() | |||
1434 | { | 1434 | { |
1435 | |||
1436 | |||
1437 | KOPrefs::instance()->mDefaultAlarmFile =mDefaultAlarmFile->text(); | 1435 | KOPrefs::instance()->mDefaultAlarmFile =mDefaultAlarmFile->text(); |
@@ -1444,3 +1442,11 @@ void KOPrefsDialog::usrWriteConfig() | |||
1444 | KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); | 1442 | KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); |
1445 | 1443 | if ( mCatDefaultColor != KOPrefs::instance()->mEventColor ) { | |
1444 | QStringList cat = KOPrefs::instance()->mCustomCategories; | ||
1445 | int iii = 0; | ||
1446 | while ( iii < cat.count() ) { | ||
1447 | if ( *KOPrefs::instance()->categoryColor( cat[ iii ] ) == mCatDefaultColor ) | ||
1448 | KOPrefs::instance()->setCategoryColor( cat[ iii ], KOPrefs::instance()->mEventColor ); | ||
1449 | ++iii; | ||
1450 | } | ||
1451 | } | ||
1446 | QDictIterator<QColor> it(mCategoryDict); | 1452 | QDictIterator<QColor> it(mCategoryDict); |
diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h index 80d6545..baa6cf9 100644 --- a/korganizer/koprefsdialog.h +++ b/korganizer/koprefsdialog.h | |||
@@ -92,2 +92,3 @@ class KOPrefsDialog : public KPrefsDialog | |||
92 | private: | 92 | private: |
93 | QColor mCatDefaultColor; | ||
93 | KPrefsDialogWidBool *mEnableGroupScheduling; | 94 | KPrefsDialogWidBool *mEnableGroupScheduling; |