Skip to content

Commit f3fb687

Browse files
committed
PICARD-3249: Fix tag name autocompletion in Edit Tag dialog
The visible_tags generator expression was exhausted by addItems(), leaving the QCompleter with no completion candidates. Use a list comprehension instead so the data can be consumed by both addItems() and QCompleter. Introduced in d765211 ("Replace TAG_NAMES dict by a generator tag_names()").
1 parent 74155ce commit f3fb687

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

picard/ui/metadatabox/edittagdialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def _initialize_ui(self):
202202
def _setup_tag_combobox(self):
203203
"""Set up the tag name combobox with supported tags."""
204204
self.default_tags = self._get_supported_tags()
205-
visible_tags = (tn for tn in self.default_tags if not tn.startswith("~")) # TODO: use TagVar.is_hidden?
205+
visible_tags = [tn for tn in self.default_tags if not tn.startswith("~")] # TODO: use TagVar.is_hidden?
206206

207207
self.ui.tag_names.addItem("")
208208
self.ui.tag_names.addItems(visible_tags)

0 commit comments

Comments
 (0)