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:
Wilhelm Schuermann 2015-05-04 08:45:25 +02:00
parent c8756f0201
commit 710372b8db
2 changed files with 2 additions and 1 deletions

View file

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