From 3d265ffdea4614b1123cef4f9fb90aa98c4bf6c5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 30 Aug 2014 21:10:06 +0530 Subject: [PATCH] Prevent the book details panel from taking input focus when clicking on links. Fixes #1363420 [Clicking link in book details pane causes loss of highlight of selected book in book list](https://bugs.launchpad.net/calibre/+bug/1363420) --- src/calibre/gui2/book_details.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/book_details.py b/src/calibre/gui2/book_details.py index 87f7cdebc0..d9400e004d 100644 --- a/src/calibre/gui2/book_details.py +++ b/src/calibre/gui2/book_details.py @@ -293,6 +293,7 @@ class BookInfo(QWebView): ac.current_url = None ac.triggered.connect(getattr(self, '%s_triggerred'%x)) setattr(self, '%s_action'%x, ac) + self.setFocusPolicy(Qt.NoFocus) def context_action_triggered(self, which): f = getattr(self, '%s_action'%which).current_fmt