1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Order lyric providers properly

This commit is contained in:
David Sansome 2010-10-10 17:00:13 +00:00
parent 996f77580e
commit 98716138ca

View File

@ -108,10 +108,10 @@ void SongInfoView::ReloadSettings() {
}
// Enable all the providers in the list and rank them
int relevance = ordered_providers.count();
int relevance = 0;
foreach (SongInfoProvider* provider, ordered_providers) {
provider->set_enabled(true);
qobject_cast<UltimateLyricsProvider*>(provider)->set_relevance(relevance--);
qobject_cast<UltimateLyricsProvider*>(provider)->set_relevance(relevance++);
}
// Any lyric providers we don't have in ordered_providers are considered disabled