PICARD-1682: Fix multiline editing for lyrics:{desc} tags

This commit is contained in:
Philipp Wolfer
2020-01-28 13:51:41 +01:00
parent 9b3597ef2c
commit e69ab0cfe1

View File

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