mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix tag browser partition by first letter not working for some categories such as Formats and Identifiers.
This commit is contained in:
parent
052af8c646
commit
6715a9969d
@ -529,10 +529,9 @@ class TagsModel(QAbstractItemModel): # {{{
|
||||
last_ordnum = 0
|
||||
last_c = ' '
|
||||
for idx,tag in enumerate(data[key]):
|
||||
if not tag.sort:
|
||||
c = ' '
|
||||
else:
|
||||
c = icu_upper(tag.sort)
|
||||
# Deal with items that don't have sorts, such as formats
|
||||
t = tag.sort if tag.sort else tag.name
|
||||
c = ' ' if not t else icu_upper(t)
|
||||
ordnum, ordlen = collation_order(c)
|
||||
if last_ordnum != ordnum:
|
||||
last_c = c[0:ordlen]
|
||||
|
Loading…
x
Reference in New Issue
Block a user