mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #1905257 [ebook-viewer: "Not a unicode string" when searching table of contents](https://bugs.launchpad.net/calibre/+bug/1905257)
This commit is contained in:
parent
da779f6f2f
commit
21d24177c6
@ -231,7 +231,7 @@ class TOC(QStandardItemModel):
|
||||
def find_items(self, query):
|
||||
for item in self.all_items:
|
||||
text = item.text()
|
||||
if text and primary_contains(query, text):
|
||||
if not query or (text and primary_contains(query, text)):
|
||||
yield item
|
||||
|
||||
def node_id_for_text(self, query):
|
||||
|
Loading…
x
Reference in New Issue
Block a user