-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(fix) Track Info: show key text as in tracks table #14020
Conversation
src/library/dlgtrackinfo.cpp
Outdated
@@ -744,7 +744,7 @@ mixxx::UpdateResult DlgTrackInfo::updateKeyText() { | |||
} | |||
|
|||
void DlgTrackInfo::displayKeyText() { | |||
const QString keyText = KeyUtils::keyToString(m_trackRecord.getKeys().getGlobalKey()); | |||
const QString keyText = m_pLoadedTrack ? m_pLoadedTrack->getKeyText() : QStringLiteral(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I wonder if this is enough. In #14008 I found that getKeyText() could be empty and I had to use getKey().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, might also be getKeys().getGlobalKey()
.
I'm still digging a bit, trying to understand how the metadata flow is supposed to work.
Yes! |
3114e59
to
26c6d4b
Compare
26c6d4b
to
212d226
Compare
212d226
to
08236b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #14019 butit feels like this is just a workaround.
(I didn't look into the Track / TrackRecord details)
Seems like TrackRecord doesn't hold the key text from the database, whereas
BaseTrackCache::getTrackValueForColumn()
takes the Track's key text.quoting my findings from #14011 (comment) again:
Max Graef - Jazz 104, FLAC
Based on #14011, so it's only the last commit.