Datafile: Interval identity is based on start time

This commit is contained in:
Paul Beckingham 2016-04-05 00:37:22 -04:00
parent a81c090cb9
commit 1a0cc1a049

View file

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