mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:35:46 +02:00
Tag editor: Fix regression in previous release that caused double clicking on tags to not work on non Linux platforms
This commit is contained in:
parent
07b4239634
commit
41045fc367
1 changed files with 4 additions and 1 deletions
|
|
@ -103,11 +103,14 @@ def __init__(self, window, db, id_=None, key=None, current_tags=None):
|
|||
connect_lambda(ibox.textChanged, self, lambda self: self.edit_box_changed(self.sender().objectName()))
|
||||
getattr(self, gprefs.get('tag_editor_last_filter', 'add_tag_input')).setFocus()
|
||||
|
||||
self.available_tags.setEditTriggers(QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||
self.applied_tags.setEditTriggers(QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||
if islinux:
|
||||
self.available_tags.doubleClicked.connect(self.apply_tags)
|
||||
self.applied_tags.doubleClicked.connect(self.unapply_tags)
|
||||
else:
|
||||
self.available_tags.activated.connect(self.apply_tags)
|
||||
self.applied_tags.activated.connect(self.unapply_tags)
|
||||
self.applied_tags.activated.connect(self.unapply_tags)
|
||||
|
||||
geom = gprefs.get('tag_editor_geometry', None)
|
||||
if geom is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue