From 02c489a02a22949c9408c5dfd6d058aa1271d48b Mon Sep 17 00:00:00 2001 From: Patrick Lipka Date: Fri, 17 Dec 2021 16:24:26 +0100 Subject: [PATCH] Added saveing to corner case of rt --- src/ui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui.cpp b/src/ui.cpp index 0b526a7..278fcab 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -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)));