mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-25 13:24:45 +01:00
Edit book: Fix searching in selected files not searching SVG files
This commit is contained in:
parent
85a04d93c5
commit
e42e31cdcb
1 changed files with 5 additions and 2 deletions
|
|
@ -745,8 +745,11 @@ def searchable_names(self):
|
|||
ok = category in {'text', 'styles'}
|
||||
if ok:
|
||||
ans[category][name] = syntax_from_mime(name, mime)
|
||||
if not ok and category == 'misc':
|
||||
ok = mime in {guess_type('a.'+x) for x in ('opf', 'ncx', 'txt', 'xml')}
|
||||
if not ok:
|
||||
if category == 'misc':
|
||||
ok = mime in {guess_type('a.'+x) for x in ('opf', 'ncx', 'txt', 'xml')}
|
||||
elif category == 'images':
|
||||
ok = mime == guess_type('a.svg')
|
||||
if ok:
|
||||
cats = []
|
||||
if item.isSelected():
|
||||
|
|
|
|||
Loading…
Reference in a new issue