mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Datafile: Interval identity is based on start time
This commit is contained in:
parent
a81c090cb9
commit
1a0cc1a049
1 changed files with 2 additions and 2 deletions
|
@ -88,12 +88,12 @@ void Datafile::addInterval (const Interval& interval)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Only checks if the start time matches.
|
||||
void Datafile::modifyInterval (const Interval& interval)
|
||||
{
|
||||
for (auto& i : _intervals)
|
||||
{
|
||||
if (i.start () == interval.start () &&
|
||||
i.tags () == interval.tags ())
|
||||
if (i.start () == interval.start ())
|
||||
{
|
||||
i = interval;
|
||||
_dirty = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue