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:
@@ -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