@@ -398,13 +398,14 @@ QString CollectionModel::DividerKey(const GroupBy type, CollectionItem *item) co
|
|||||||
case GroupBy_Genre:
|
case GroupBy_Genre:
|
||||||
case GroupBy_Format:
|
case GroupBy_Format:
|
||||||
case GroupBy_FileType: {
|
case GroupBy_FileType: {
|
||||||
QChar c = item->sort_text[0].toUpper();
|
QChar c = item->sort_text[0];
|
||||||
if (c.isDigit()) return "0";
|
if (c.isDigit()) return "0";
|
||||||
if (c == ' ') return QString();
|
if (c == ' ') return QString();
|
||||||
if (c.decompositionTag() != QChar::NoDecomposition)
|
if (c.decompositionTag() != QChar::NoDecomposition) {
|
||||||
return QChar(c.decomposition()[0]);
|
return QChar(c.decomposition()[0]);
|
||||||
return c;
|
|
||||||
}
|
}
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
|
||||||
case GroupBy_Year:
|
case GroupBy_Year:
|
||||||
case GroupBy_OriginalYear:
|
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
|
// Create the divider entry if we're supposed to
|
||||||
if (create_divider && show_dividers_) {
|
if (create_divider && show_dividers_) {
|
||||||
QString divider_key = DividerKey(type, item);
|
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);
|
item->sort_text.prepend(divider_key);
|
||||||
|
|
||||||
if (!divider_key.isEmpty() && !divider_nodes_.contains(divider_key)) {
|
if (!divider_key.isEmpty() && !divider_nodes_.contains(divider_key)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user