diff --git a/src/library/dlgtrackinfo.cpp b/src/library/dlgtrackinfo.cpp index 1cabe7faaf6..6189a342a90 100644 --- a/src/library/dlgtrackinfo.cpp +++ b/src/library/dlgtrackinfo.cpp @@ -744,7 +744,12 @@ mixxx::UpdateResult DlgTrackInfo::updateKeyText() { } void DlgTrackInfo::displayKeyText() { - const QString keyText = KeyUtils::keyToString(m_trackRecord.getKeys().getGlobalKey()); + QString keyText; + if (m_pLoadedTrack) { + keyText = KeyUtils::keyFromKeyTextAndIdValues( + m_pLoadedTrack->getKeyText(), + m_pLoadedTrack->getKey()); + } txtKey->setText(keyText); } diff --git a/src/library/dlgtrackinfomulti.cpp b/src/library/dlgtrackinfomulti.cpp index 8f352d17d41..8a39bd26ffd 100644 --- a/src/library/dlgtrackinfomulti.cpp +++ b/src/library/dlgtrackinfomulti.cpp @@ -386,7 +386,11 @@ void DlgTrackInfoMulti::updateTrackMetadataFields() { composers.insert(rec.getMetadata().getTrackInfo().getComposer()); grouping.insert(rec.getMetadata().getTrackInfo().getGrouping()); years.insert(rec.getMetadata().getTrackInfo().getYear()); - keys.insert(KeyUtils::keyToString(rec.getKeys().getGlobalKey())); + auto pTrack = getTrackFromSetById(rec.getId()); + DEBUG_ASSERT(pTrack); + keys.insert(KeyUtils::keyFromKeyTextAndIdValues( + pTrack->getKeyText(), + pTrack->getKey())); nums.insert(rec.getMetadata().getTrackInfo().getTrackNumber()); comments.insert(rec.getMetadata().getTrackInfo().getComment());