Added saveing to corner case of rt

This commit is contained in:
Patrick Lipka 2021-12-17 16:24:26 +01:00
parent 7b2b33e8aa
commit 02c489a02a
1 changed files with 1 additions and 0 deletions

View File

@ -520,6 +520,7 @@ void command_rt(std::string input, int wtime, ProjectList *proj_list){
}
proj_list->active_project->active_task->add_time(-wtime);
std::cout << wtime << "s removed from task " << proj_list->active_project->name << "/" << proj_list->active_project->active_task->name << std::endl;
command_save(proj_list);
return;
}else{
int id=proj_list->active_project->find_task_id_by_name(trim(underscore_to_space(proj_name)));