mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
commit
00a96db7a5
@ -162,7 +162,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def search_clicked(self):
|
def search_clicked(self):
|
||||||
search_for = unicode(self.search_box.text())
|
search_for = icu_lower(unicode(self.search_box.text()))
|
||||||
if not search_for:
|
if not search_for:
|
||||||
error_dialog(self, _('Find'), _('You must enter some text to search for'),
|
error_dialog(self, _('Find'), _('You must enter some text to search for'),
|
||||||
show=True, show_copy_button=False)
|
show=True, show_copy_button=False)
|
||||||
@ -176,7 +176,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
|
|||||||
if row >= rows:
|
if row >= rows:
|
||||||
row = 0
|
row = 0
|
||||||
item = self.table.item(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)
|
self.table.setCurrentItem(item)
|
||||||
return
|
return
|
||||||
info_dialog(self, _('Find'), _('No tag found'), show=True, show_copy_button=False)
|
info_dialog(self, _('Find'), _('No tag found'), show=True, show_copy_button=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user