mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1807266 [create_from_xpath IOError: [Errno 5] Input/output error](https://bugs.launchpad.net/calibre/+bug/1807266)
This commit is contained in:
parent
320487b8df
commit
34746bbd94
@ -934,7 +934,6 @@ class TOCView(QWidget): # {{{
|
|||||||
|
|
||||||
def create_from_xpath(self, xpaths, remove_duplicates=True):
|
def create_from_xpath(self, xpaths, remove_duplicates=True):
|
||||||
toc = from_xpaths(self.ebook, xpaths)
|
toc = from_xpaths(self.ebook, xpaths)
|
||||||
print(1111111, remove_duplicates)
|
|
||||||
if len(toc) == 0:
|
if len(toc) == 0:
|
||||||
return error_dialog(self, _('No items found'),
|
return error_dialog(self, _('No items found'),
|
||||||
_('No items were found that could be added to the Table of Contents.'), show=True)
|
_('No items were found that could be added to the Table of Contents.'), show=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user