From 1c4647708adc42c5e96cc7cbcf54d475e2cafcc4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 12 Aug 2018 09:57:32 -0400 Subject: [PATCH] TW #2047: Exiting the task editor with an error code doesn't remove the lock file - Thanks to coaxial --- AUTHORS | 1 + ChangeLog | 2 ++ src/commands/CmdEdit.cpp | 1 + 3 files changed, 4 insertions(+) diff --git a/AUTHORS b/AUTHORS index f91189099..a4cc02c5a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -331,3 +331,4 @@ suggestions: Martin F. Krafft tom-doerr ad-si + coaxial diff --git a/ChangeLog b/ChangeLog index d8910f387..0aca25870 100644 --- a/ChangeLog +++ b/ChangeLog @@ -99,6 +99,8 @@ Thanks to Janik Rabe - TW #2020 reserved.lines is not affecting the burndown height Thanks to ad₋si +- TW #2047 Exiting the task editor with an error code doesn't remove the lock file + Thanks to coaxial - TW #2051 doc/man: ready tasks sorted with started tasks 1st Thanks to Simon Désaulniers - TW #2053 Do not set CMP0037 on CMake 3.11.0 and above diff --git a/src/commands/CmdEdit.cpp b/src/commands/CmdEdit.cpp index ea2043d96..820b88cc6 100644 --- a/src/commands/CmdEdit.cpp +++ b/src/commands/CmdEdit.cpp @@ -781,6 +781,7 @@ ARE_THESE_REALLY_HARMFUL: std::cout << format ("Editing failed with exit code {1}.\n", exitcode); if (-1 == exitcode) std::cout << std::strerror (captured_errno) << '\n'; + File::remove (file.str ()); return CmdEdit::editResult::error; }