mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit book: Fix searching in selected files not searching SVG files
This commit is contained in:
parent
85a04d93c5
commit
e42e31cdcb
@ -745,8 +745,11 @@ class FileList(QTreeWidget):
|
||||
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…
x
Reference in New Issue
Block a user