From 64bfec4ea91f75006d9cc3647247315b293ca46f Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 10 Jan 2017 01:18:35 +0100 Subject: Fix clean option to deal with new states --- todo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3