-rw-r--r-- | libkcal/todo.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index 3d2de61..7362bdf 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp @@ -290,3 +290,6 @@ void Todo::setCompleted(bool completed) if (completed) mPercentComplete = 100; - else mPercentComplete = 0; + else { + mPercentComplete = 0; + mHasCompletedDate = false; + } updated(); @@ -325,2 +328,4 @@ void Todo::setPercentComplete(int v) mPercentComplete = v; + if ( v != 100 ) + mHasCompletedDate = false; updated(); |