If grouping by album name (therefore letter) need to use sort if non

empty
This commit is contained in:
Craig Drummond
2018-03-07 21:52:07 +00:00
parent 1829119baa
commit 2c1d32fe07

View File

@@ -183,7 +183,7 @@ void SqlLibraryModel::libraryUpdated()
switch(albumSort) {
case LibraryDb::AS_AlArYr:
case LibraryDb::AS_AlYrAr:
name=album.name.at(0).toUpper();
name=album.sort.isEmpty() ? album.name.at(0).toUpper() : album.sort.at(0).toUpper();
break;
case LibraryDb::AS_ArAlYr:
case LibraryDb::AS_ArYrAl: