aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-01-10 01:18:35 +0100
committerache <ache@ache.one>2017-01-10 01:18:35 +0100
commit64bfec4ea91f75006d9cc3647247315b293ca46f (patch)
tree53f8b7ca05baf38ef6a6a884deb2379c85cff9f3
parentNew states (diff)
Fix clean option to deal with new states
-rwxr-xr-xtodo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/todo.cpp b/todo.cpp
index 751257c..23ba269 100755
--- a/todo.cpp
+++ b/todo.cpp
@@ -208,7 +208,8 @@ int main(int argc, char *argv[]) {
case 7: // Clean
{
for ( int i = listTodo.size()-1; i >= 0 ; --i) {
- if( listTodo.at(i).etat )
+ if( listTodo.at(i).etat == DONE_STATE ||
+ listTodo.at(i).etat == MISSED_STATE)
listTodo.erase(begin(listTodo)+i);
}
break;