summaryrefslogtreecommitdiffstats
path: root/src/track
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-07-12 18:24:41 +0200
committerUwe Klotz <uklotz@mixxx.org>2020-07-12 18:25:08 +0200
commit69a347aec59787185ac6f5fb40124ee6b67b3ca3 (patch)
tree860815ab8405439c128979c74e10b3300185dd27 /src/track
parent0815bcb28a0c323d8353e1f7133f124ecb7c0969 (diff)
Fix debug assertion when storing Cue objects without track id
Diffstat (limited to 'src/track')
-rw-r--r--src/track/track.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/track/track.cpp b/src/track/track.cpp
index d05cfb1bf9..8a4c321681 100644
--- a/src/track/track.cpp
+++ b/src/track/track.cpp
@@ -689,8 +689,11 @@ void Track::initId(TrackId id) {
return; // abort
}
m_record.setId(std::move(id));
+ for (const auto pCue : qAsConst(m_cuePoints)) {
+ pCue->setTrackId(id);
+ }
// Changing the Id does not make the track dirty because the Id is always
- // generated by the Database itself.
+ // generated by the database itself.
}
void Track::resetId() {