mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04: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
@ -103,11 +103,14 @@ class TagEditor(QDialog, Ui_TagEditor):
|
|||||||
connect_lambda(ibox.textChanged, self, lambda self: self.edit_box_changed(self.sender().objectName()))
|
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()
|
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:
|
if islinux:
|
||||||
self.available_tags.doubleClicked.connect(self.apply_tags)
|
self.available_tags.doubleClicked.connect(self.apply_tags)
|
||||||
|
self.applied_tags.doubleClicked.connect(self.unapply_tags)
|
||||||
else:
|
else:
|
||||||
self.available_tags.activated.connect(self.apply_tags)
|
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)
|
geom = gprefs.get('tag_editor_geometry', None)
|
||||||
if geom is not None:
|
if geom is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user