1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-28 18:19:42 +01:00

Hopefully fix bug with 0-9 dividers

This commit is contained in:
David Sansome 2010-02-21 22:25:38 +00:00
parent f8808baa1d
commit 042c37ab40

View File

@ -144,6 +144,9 @@ LibraryItem* Library::CreateArtistNode(bool signal, const QString& name) {
if (!name.isEmpty()) {
QChar divider_char = ret->sort_text[0];
if (divider_char.isDigit())
divider_char = '0';
if (!divider_nodes_.contains(divider_char)) {
if (signal)
beginInsertRows(ItemToIndex(parent), parent->children.count(), parent->children.count());