mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdLengthen: Only validates additions
This commit is contained in:
parent
9ff42e7704
commit
8ee4319732
1 changed files with 3 additions and 2 deletions
|
@ -66,11 +66,12 @@ int CmdLengthen (
|
|||
Interval i = tracked[tracked.size () - id];
|
||||
if (! i.range.is_open ())
|
||||
{
|
||||
database.deleteInterval (tracked[tracked.size () - id]);
|
||||
|
||||
Duration dur (delta);
|
||||
i.range.end += dur.toTime_t ();
|
||||
|
||||
validate (cli, rules, database, i);
|
||||
database.modifyInterval (tracked[tracked.size () - id], i);
|
||||
database.addInterval (i);
|
||||
|
||||
// Feedback.
|
||||
if (rules.getBoolean ("verbose"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue