mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
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:
parent
a86cb47480
commit
3d265ffdea
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user