diff --git a/src/track/track.cpp b/src/track/track.cpp index a62391eeb7d4..e68f4f118f93 100644 --- a/src/track/track.cpp +++ b/src/track/track.cpp @@ -288,7 +288,6 @@ mixxx::TrackRecord Track::getRecord( bool Track::replaceRecord( mixxx::TrackRecord newRecord, mixxx::BeatsPointer pOptionalBeats) { - const auto newKey = newRecord.getGlobalKey(); const auto newReplayGain = newRecord.getMetadata().getTrackInfo().getReplayGain(); const auto newColor = newRecord.getColor(); const auto newRating = newRecord.getRating(); @@ -299,7 +298,6 @@ bool Track::replaceRecord( return false; } - const auto oldKey = m_record.getGlobalKey(); const auto oldReplayGain = m_record.getMetadata().getTrackInfo().getReplayGain(); const auto oldColor = m_record.getColor(); const auto oldRating = m_record.getRating(); @@ -327,10 +325,7 @@ bool Track::replaceRecord( markDirtyAndUnlock(&locked); if (bpmUpdatedFlag) { - emitBeatsAndBpmUpdated(); - } - if (oldKey != newKey) { - emit keyChanged(); + emit beatsUpdated(); } if (oldReplayGain != newReplayGain) { emit replayGainUpdated(newReplayGain);