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)

This commit is contained in:
Kovid Goyal 2014-08-30 21:10:06 +05:30
parent a86cb47480
commit 3d265ffdea

View File

@ -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