From 6f2392eb7738ccf710e16932f8d08fb2e0bc0242 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 18 Mar 2017 18:31:03 +0530 Subject: [PATCH] E-book viewer: Fix a regression that broke the "Clear recently read books" action in the viewer --- src/calibre/gui2/viewer/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/viewer/main.py b/src/calibre/gui2/viewer/main.py index 26a77acb26..657701c692 100644 --- a/src/calibre/gui2/viewer/main.py +++ b/src/calibre/gui2/viewer/main.py @@ -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()