mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 17:14:58 +01:00
parent
b6ff7e6b47
commit
a2e35e30dc
@ -398,13 +398,14 @@ QString CollectionModel::DividerKey(const GroupBy type, CollectionItem *item) co
|
||||
case GroupBy_Genre:
|
||||
case GroupBy_Format:
|
||||
case GroupBy_FileType: {
|
||||
QChar c = item->sort_text[0].toUpper();
|
||||
QChar c = item->sort_text[0];
|
||||
if (c.isDigit()) return "0";
|
||||
if (c == ' ') return QString();
|
||||
if (c.decompositionTag() != QChar::NoDecomposition)
|
||||
return QChar(c.decomposition()[0]);
|
||||
return c;
|
||||
if (c.decompositionTag() != QChar::NoDecomposition) {
|
||||
return QChar(c.decomposition()[0]);
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
case GroupBy_Year:
|
||||
case GroupBy_OriginalYear:
|
||||
@ -1565,7 +1566,7 @@ void CollectionModel::FinishItem(const GroupBy type, const bool signal, const bo
|
||||
// Create the divider entry if we're supposed to
|
||||
if (create_divider && show_dividers_) {
|
||||
QString divider_key = DividerKey(type, item);
|
||||
if (item->sort_text.isEmpty() || item->sort_text[0].toUpper() != divider_key)
|
||||
if (item->sort_text.isEmpty() || item->sort_text[0].toLower() != divider_key)
|
||||
item->sort_text.prepend(divider_key);
|
||||
|
||||
if (!divider_key.isEmpty() && !divider_nodes_.contains(divider_key)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user