diff options
Diffstat (limited to 'kalarm/recurrenceedit.cpp')
-rw-r--r-- | kalarm/recurrenceedit.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kalarm/recurrenceedit.cpp b/kalarm/recurrenceedit.cpp index 4a39022e4..1ccb94d2a 100644 --- a/kalarm/recurrenceedit.cpp +++ b/kalarm/recurrenceedit.cpp @@ -453,8 +453,8 @@ void RecurrenceEdit::periodClicked(int id) void RecurrenceEdit::slotAnyTimeToggled(bool on) { TQButton* button = mRuleButtonGroup->selected(); - mEndTimeEdit->setEnabled(button == mAtLoginButton && !on - || button == mSubDailyButton && mEndDateButton->isChecked()); + mEndTimeEdit->setEnabled((button == mAtLoginButton && !on) + || (button == mSubDailyButton && mEndDateButton->isChecked())); } /****************************************************************************** @@ -465,7 +465,7 @@ void RecurrenceEdit::rangeTypeClicked() bool endDate = mEndDateButton->isOn(); mEndDateEdit->setEnabled(endDate); mEndTimeEdit->setEnabled(endDate - && (mAtLoginButton->isOn() && !mEndAnyTimeCheckBox->isChecked() + && ((mAtLoginButton->isOn() && !mEndAnyTimeCheckBox->isChecked()) || mSubDailyButton->isOn())); bool repeatCount = mRepeatCountButton->isOn(); mRepeatCountEntry->setEnabled(repeatCount); @@ -480,7 +480,7 @@ void RecurrenceEdit::showEvent(TQShowEvent*) mRuleButtonGroup->selected()->setFocus(); emit shown(); } - + /****************************************************************************** * Return the sub-repetition count within the recurrence, i.e. the number of * repetitions after the main recurrence. @@ -997,7 +997,7 @@ bool RecurrenceEdit::stateChanged() const { if (mSavedRuleButton != mRuleButtonGroup->selected() || mSavedRangeButton != mRangeButtonGroup->selected() - || mRule && mRule->stateChanged()) + || (mRule && mRule->stateChanged())) return true; if (mSavedRangeButton == mRepeatCountButton && mSavedRecurCount != mRepeatCountEntry->value()) |