mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
CmdSplit: Only validates additions
This commit is contained in:
parent
13663c327f
commit
c1ca1e19e1
1 changed files with 4 additions and 1 deletions
|
@ -81,8 +81,11 @@ int CmdSplit (
|
|||
second.range.start = midpoint;
|
||||
}
|
||||
|
||||
database.deleteInterval (tracked[tracked.size () - id]);
|
||||
|
||||
validate (cli, rules, database, first);
|
||||
database.modifyInterval (tracked[tracked.size () - id], first);
|
||||
database.addInterval (first);
|
||||
|
||||
validate (cli, rules, database, second);
|
||||
database.addInterval (second);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue