author | zautrix <zautrix> | 2005-06-29 14:28:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-29 14:28:51 (UTC) |
commit | e0fa858c284dddf0d47146e666c4ece7158487be (patch) (side-by-side diff) | |
tree | 65ffa534d76019376095d4ffa1a36faee4e25880 | |
parent | f29d4de96b6fd334ff64f11731f5d4899b69f124 (diff) | |
download | kdepimpi-e0fa858c284dddf0d47146e666c4ece7158487be.zip kdepimpi-e0fa858c284dddf0d47146e666c4ece7158487be.tar.gz kdepimpi-e0fa858c284dddf0d47146e666c4ece7158487be.tar.bz2 |
fixxx
-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 @@ -1427,5 +1427,5 @@ void KOPrefsDialog::usrReadConfig() mAlarmSuspendCount->setValue(KOPrefs::instance()->mAlarmSuspendCount ); mAlarmBeepInterval->setValue(KOPrefs::instance()->mAlarmBeepInterval ); - + mCatDefaultColor = KOPrefs::instance()->mEventColor; } @@ -1433,6 +1433,4 @@ void KOPrefsDialog::usrReadConfig() void KOPrefsDialog::usrWriteConfig() { - - KOPrefs::instance()->mDefaultAlarmFile =mDefaultAlarmFile->text(); KOPrefs::instance()->setFullName(mNameEdit->text()); @@ -1443,5 +1441,13 @@ void KOPrefsDialog::usrWriteConfig() KOPrefs::instance()->mDefaultDuration = mDefaultDurationSpin->value(); KOPrefs::instance()->mAlarmTime = mAlarmTimeCombo->currentItem(); - + if ( mCatDefaultColor != KOPrefs::instance()->mEventColor ) { + QStringList cat = KOPrefs::instance()->mCustomCategories; + int iii = 0; + while ( iii < cat.count() ) { + if ( *KOPrefs::instance()->categoryColor( cat[ iii ] ) == mCatDefaultColor ) + KOPrefs::instance()->setCategoryColor( cat[ iii ], KOPrefs::instance()->mEventColor ); + ++iii; + } + } QDictIterator<QColor> it(mCategoryDict); while (it.current()) { diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h index 80d6545..baa6cf9 100644 --- a/korganizer/koprefsdialog.h +++ b/korganizer/koprefsdialog.h @@ -91,4 +91,5 @@ class KOPrefsDialog : public KPrefsDialog private: + QColor mCatDefaultColor; KPrefsDialogWidBool *mEnableGroupScheduling; KPrefsDialogWidBool *mEnableProjectView; |