mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-26 07:03:12 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ def __init__(self, vertical, parent=None):
|
|||
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…
Reference in a new issue