mirror of
https://github.com/fergalmoran/picard.git
synced 2026-04-19 10:55:14 +00:00
PICARD-1682: Fix multiline editing for lyrics:{desc} tags
This commit is contained in:
@@ -49,7 +49,7 @@ class TagEditorDelegate(QtWidgets.QItemDelegate):
|
||||
if not index.isValid():
|
||||
return None
|
||||
tag = self.get_tag_name(index)
|
||||
if tag in ('lyrics', 'comment') or tag.startswith('comment:'):
|
||||
if tag.partition(':')[0] in ('comment', 'lyrics'):
|
||||
editor = QtWidgets.QPlainTextEdit(parent)
|
||||
editor.setFrameStyle(editor.style().styleHint(QtWidgets.QStyle.SH_ItemView_DrawDelegateFrame, None, editor))
|
||||
editor.setMinimumSize(QtCore.QSize(0, 80))
|
||||
|
||||
Reference in New Issue
Block a user