summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeditorgeneraltodo.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/korganizer/koeditorgeneraltodo.cpp b/korganizer/koeditorgeneraltodo.cpp
index 10d9a8c..d32d5a5 100644
--- a/korganizer/koeditorgeneraltodo.cpp
+++ b/korganizer/koeditorgeneraltodo.cpp
@@ -209,10 +209,5 @@ void KOEditorGeneralTodo::setDefaults(QDateTime due,bool allDay)
mTimeButton->setChecked( !allDay );
- if(mTimeButton->isChecked()) {
- mTimeButton->setEnabled(true);
- }
- else {
- mTimeButton->setEnabled(false);
- }
+ mTimeButton->setEnabled( !allDay );
enableTimeEdits( !allDay );
@@ -253,4 +248,6 @@ void KOEditorGeneralTodo::readTodo(Todo *todo)
QDateTime dueDT;
+ mTimeButton->setChecked( !todo->doesFloat() );
+ mTimeButton->setEnabled( !todo->doesFloat() );
if (todo->hasDueDate()) {
@@ -260,4 +257,5 @@ void KOEditorGeneralTodo::readTodo(Todo *todo)
mDueTimeEdit->setTime(todo->dtDue().time());
mDueCheck->setChecked(true);
+ mTimeButton->setEnabled( true );
} else {
alarmDisable(true);
@@ -273,4 +271,5 @@ void KOEditorGeneralTodo::readTodo(Todo *todo)
mStartTimeEdit->setTime(todo->dtStart().time());
mStartCheck->setChecked(true);
+ mTimeButton->setEnabled( true );
} else {
mStartDateEdit->setEnabled(false);
@@ -281,5 +280,4 @@ void KOEditorGeneralTodo::readTodo(Todo *todo)
}
- mTimeButton->setChecked( !todo->doesFloat() );
mCompletedCombo->setCurrentItem(todo->percentComplete() / 20);