E-book viewer: Fix a regression that broke the "Clear recently read books" action in the viewer

This commit is contained in:
Kovid Goyal 2017-03-18 18:31:03 +05:30
parent e494a603d6
commit 6f2392eb77

View File

@ -620,7 +620,8 @@ class EbookViewer(MainWindow):
self.load_ebook(files[0])
def open_recent(self, action):
self.load_ebook(action.path)
if hasattr(action, 'path'):
self.load_ebook(action.path)
def font_size_larger(self):
self.view.magnify_fonts()