From 30f22861baa0396fb7260ca2068ff398f4ffc681 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 Apr 2011 08:12:31 -0600 Subject: [PATCH 1/2] Fix typo that broke metadata downloading if the user has the txt comments preference turned on --- src/calibre/ebooks/metadata/sources/identify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/sources/identify.py b/src/calibre/ebooks/metadata/sources/identify.py index bc9070852b..8771274f92 100644 --- a/src/calibre/ebooks/metadata/sources/identify.py +++ b/src/calibre/ebooks/metadata/sources/identify.py @@ -412,7 +412,7 @@ def identify(log, abort, # {{{ if msprefs['txt_comments']: for r in results: - if r.plugin.has_html_comments and r.comments: + if r.identify_plugin.has_html_comments and r.comments: r.comments = html2text(r.comments) max_tags = msprefs['max_tags'] From b26e7cf43605b73993e747a7ab055d4cb3ee182c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 Apr 2011 09:11:02 -0600 Subject: [PATCH 2/2] Fix #769492 (Key Ctrl+L doesn't work) --- src/calibre/gui2/viewer/documentview.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/viewer/documentview.py b/src/calibre/gui2/viewer/documentview.py index 06964cda1c..808a764196 100644 --- a/src/calibre/gui2/viewer/documentview.py +++ b/src/calibre/gui2/viewer/documentview.py @@ -534,6 +534,7 @@ class DocumentView(QWebView): # {{{ _('&Lookup in dictionary'), self) self.dictionary_action.setShortcut(Qt.CTRL+Qt.Key_L) self.dictionary_action.triggered.connect(self.lookup) + self.addAction(self.dictionary_action) self.goto_location_action = QAction(_('Go to...'), self) self.goto_location_menu = m = QMenu(self) self.goto_location_actions = a = {