diff options
author | Michele Calgaro <[email protected]> | 2015-08-07 17:06:29 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2015-08-07 17:06:29 +0900 |
commit | c036d97d35d25c4511d9569d40c1de07dab96bb6 (patch) | |
tree | abb9a42ff29a9c144450b6b6a5aafb851cbdc69c /kalarm/recurrenceedit.cpp | |
parent | 74a91e13153f0696bb62baa78dac119f3a2e9fca (diff) | |
download | tdepim-c036d97d35d25c4511d9569d40c1de07dab96bb6.tar.gz tdepim-c036d97d35d25c4511d9569d40c1de07dab96bb6.zip |
Fixed KAlarm building warnings. Minor style patch up. Fixed possible error in treating deferred evens (see kalarm/alarmevent.cpp:1739).
Signed-off-by: Michele Calgaro <[email protected]>
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 1389f54e4..4a61ed667 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. @@ -1090,7 +1090,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()) |