parent
3fde474a5b
commit
e5dc3dbf03
@ -985,6 +985,7 @@ class PlaylistModel(QAbstractTableModel):
|
|||||||
playlist_row.note += "\n" + note
|
playlist_row.note += "\n" + note
|
||||||
else:
|
else:
|
||||||
playlist_row.note = note
|
playlist_row.note = note
|
||||||
|
self.refresh_row(session, playlist_row.row_number)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
# Carry out the move outside of the session context to ensure
|
# Carry out the move outside of the session context to ensure
|
||||||
|
|||||||
@ -214,7 +214,13 @@ class PlaylistDelegate(QStyledItemDelegate):
|
|||||||
doc.setTextWidth(option.rect.width())
|
doc.setTextWidth(option.rect.width())
|
||||||
doc.setDefaultFont(option.font)
|
doc.setDefaultFont(option.font)
|
||||||
doc.setDocumentMargin(Config.ROW_PADDING)
|
doc.setDocumentMargin(Config.ROW_PADDING)
|
||||||
doc.setHtml(option.text)
|
if '\n' in option.text:
|
||||||
|
txt = option.text.replace('\n', '<br>')
|
||||||
|
elif '\u2028' in option.text:
|
||||||
|
txt = option.text.replace('\u2028', '<br>')
|
||||||
|
else:
|
||||||
|
txt = option.text
|
||||||
|
doc.setHtml(txt)
|
||||||
|
|
||||||
# For debugging +++
|
# For debugging +++
|
||||||
# Calculate sizes
|
# Calculate sizes
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user