Merge branch 'viewer-open-recent' of https://github.com/eli-schwartz/calibre

This commit is contained in:
Kovid Goyal 2020-03-27 21:54:25 +05:30
commit b45163f59e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -250,7 +250,7 @@ class ActionsToolBar(ToolBar):
path = os.path.abspath(entry['pathtoebook']) path = os.path.abspath(entry['pathtoebook'])
except Exception: except Exception:
continue continue
if path == os.path.abspath(set_book_path.pathtoebook): if hasattr(set_book_path, 'pathtoebook') and path == os.path.abspath(set_book_path.pathtoebook):
continue continue
m.addAction('{}\t {}'.format( m.addAction('{}\t {}'.format(
elided_text(entry['title'], pos='right', width=250), elided_text(entry['title'], pos='right', width=250),