mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
ed7bf95ed5
commit
e1bc54a782
@ -1175,7 +1175,8 @@ class TagsModel(QAbstractItemModel): # {{{
|
||||
k = 'author_sort' if key == 'authors' else key
|
||||
letters_seen = {}
|
||||
for subnode in tag_item.children:
|
||||
letters_seen[subnode.tag.sort[0]] = True
|
||||
if subnode.tag.sort:
|
||||
letters_seen[subnode.tag.sort[0]] = True
|
||||
charclass = ''.join(letters_seen)
|
||||
if k == 'author_sort':
|
||||
expr = r'%s:"~(^[%s])|(&\s*[%s])"'%(k, charclass, charclass)
|
||||
|
Loading…
x
Reference in New Issue
Block a user