summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/timeedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/lib/timeedit.cpp')
-rw-r--r--kalarm/lib/timeedit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/kalarm/lib/timeedit.cpp b/kalarm/lib/timeedit.cpp
index 51760fc49..80713f2fe 100644
--- a/kalarm/lib/timeedit.cpp
+++ b/kalarm/lib/timeedit.cpp
@@ -77,8 +77,7 @@ bool TimeEdit::isValid() const
void TimeEdit::setValid(bool valid)
{
bool oldValid = mSpinBox->isValid();
- if (valid && !oldValid
- || !valid && oldValid)
+ if ((valid && !oldValid) || (!valid && oldValid))
{
mSpinBox->setValid(valid);
if (mAmPm)