mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix clicking on news category to respect the current language
This commit is contained in:
parent
8f6f6381a5
commit
c450f28524
@ -1654,9 +1654,9 @@ class TagsModel(QAbstractItemModel): # {{{
|
||||
if node.tag.state:
|
||||
if node.category_key == "news":
|
||||
if node_searches[node.tag.state] == 'true':
|
||||
ans.append('tags:=news')
|
||||
ans.append('tags:"=' + _('News') + '"')
|
||||
else:
|
||||
ans.append('( not tags:=news )')
|
||||
ans.append('( not tags:"=' + _('News') + '")')
|
||||
else:
|
||||
ans.append('%s:%s'%(node.category_key, node_searches[node.tag.state]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user