TW-1610: Disabling GC can lead to editing the wrong task
- 9e6c6ecb93 introduced a change that
can lead to the wrong task being edited when GC is manually turned
off. Fix this by taking the user's GC setting into account.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
again (thanks to Jens Erat).
|
||||
- TW-1605 Japanese translation for Taskwarrior (thanks to Oota Toshiya).
|
||||
- TW-1606 scheduled.any filter (thanks to Peter Rochen).
|
||||
- TW-1610 Disabling GC can lead to editing the wrong task (thanks to Scott M).
|
||||
- The 'obfuscate' setting, if set to '1' will replace all text with 'xxx'.
|
||||
- POSIX file locking mechanism, eliminating platform-specific code.
|
||||
|
||||
|
||||
@@ -453,7 +453,7 @@ int Context::dispatch (std::string &out)
|
||||
// possible.
|
||||
if (c->displays_id () && !tdb2.read_only ())
|
||||
{
|
||||
run_gc = true;
|
||||
run_gc = config.getBoolean ("gc");
|
||||
tdb2.gc ();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user