mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
CmdShorten: Only validates additions
This commit is contained in:
parent
5dc631314d
commit
13663c327f
1 changed files with 3 additions and 2 deletions
|
@ -69,10 +69,11 @@ int CmdShorten (
|
|||
Duration dur (delta);
|
||||
if (dur < (i.range.end - i.range.start))
|
||||
{
|
||||
i.range.end -= dur.toTime_t ();
|
||||
database.deleteInterval (tracked[tracked.size () - id]);
|
||||
|
||||
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