diff options
author | ache <ache@ache.one> | 2017-01-10 01:18:35 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2017-01-10 01:18:35 +0100 |
commit | 64bfec4ea91f75006d9cc3647247315b293ca46f (patch) | |
tree | 53f8b7ca05baf38ef6a6a884deb2379c85cff9f3 | |
parent | New states (diff) |
Fix clean option to deal with new states
-rwxr-xr-x | todo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |