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:
Kovid Goyal 2022-02-18 21:13:24 +05:30
parent 07b4239634
commit 41045fc367
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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