-rw-r--r-- | bin/kdepim/WhatsNew.txt | 1 | ||||
-rw-r--r-- | korganizer/koeditorgeneraltodo.cpp | 12 | ||||
-rw-r--r-- | libkcal/todo.cpp | 1 |
3 files changed, 7 insertions, 7 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 18e94a7..15caf9e 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt @@ -6,2 +6,3 @@ KO/Pi: Fixed a problem displaying very long allday events in agenda view in single day mode. +Fixed a problem with the default settings for new todos. diff --git a/korganizer/koeditorgeneraltodo.cpp b/korganizer/koeditorgeneraltodo.cpp index 10d9a8c..d32d5a5 100644 --- a/korganizer/koeditorgeneraltodo.cpp +++ b/korganizer/koeditorgeneraltodo.cpp @@ -210,8 +210,3 @@ void KOEditorGeneralTodo::setDefaults(QDateTime due,bool allDay) mTimeButton->setChecked( !allDay ); - if(mTimeButton->isChecked()) { - mTimeButton->setEnabled(true); - } - else { - mTimeButton->setEnabled(false); - } + mTimeButton->setEnabled( !allDay ); @@ -254,2 +249,4 @@ void KOEditorGeneralTodo::readTodo(Todo *todo) QDateTime dueDT; + mTimeButton->setChecked( !todo->doesFloat() ); + mTimeButton->setEnabled( !todo->doesFloat() ); @@ -261,2 +258,3 @@ void KOEditorGeneralTodo::readTodo(Todo *todo) mDueCheck->setChecked(true); + mTimeButton->setEnabled( true ); } else { @@ -274,2 +272,3 @@ void KOEditorGeneralTodo::readTodo(Todo *todo) mStartCheck->setChecked(true); + mTimeButton->setEnabled( true ); } else { @@ -282,3 +281,2 @@ void KOEditorGeneralTodo::readTodo(Todo *todo) - mTimeButton->setChecked( !todo->doesFloat() ); diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index e4508a0..48d37d5 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp @@ -44,2 +44,3 @@ Todo::Todo(): QObject(), Incidence() mRunSaveTimer = 0; + setFloats( true ); } |