mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-27 16:24:35 +01:00
Tag category searches should be caseless.
This commit is contained in:
parent
1233206750
commit
45df192a77
1 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ def __init__(self, window, cat_name, tag_to_match, data, sorter):
|
|||
pass
|
||||
|
||||
def search_clicked(self):
|
||||
search_for = unicode(self.search_box.text())
|
||||
search_for = icu_lower(unicode(self.search_box.text()))
|
||||
if not search_for:
|
||||
error_dialog(self, _('Find'), _('You must enter some text to search for'),
|
||||
show=True, show_copy_button=False)
|
||||
|
|
@ -176,7 +176,7 @@ def search_clicked(self):
|
|||
if row >= rows:
|
||||
row = 0
|
||||
item = self.table.item(row, 0)
|
||||
if search_for in unicode(item.text()):
|
||||
if search_for in icu_lower(unicode(item.text())):
|
||||
self.table.setCurrentItem(item)
|
||||
return
|
||||
info_dialog(self, _('Find'), _('No tag found'), show=True, show_copy_button=False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue