From 7bde308bd676944ba0c67cc9a23f4c8975aec4c9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 May 2023 13:21:22 +0530 Subject: [PATCH] Forgot to fix TextDelegate --- src/calibre/gui2/library/delegates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/delegates.py b/src/calibre/gui2/library/delegates.py index d025d67b21..416ba3d2ab 100644 --- a/src/calibre/gui2/library/delegates.py +++ b/src/calibre/gui2/library/delegates.py @@ -317,7 +317,8 @@ class TextDelegate(QStyledItemDelegate, UpdateEditorGeometry): # {{{ return editor def setEditorData(self, editor, index): - editor.setText(get_val_for_textlike_columns(index)) + n = editor.metaObject().userProperty().name() + editor.setProperty(n, get_val_for_textlike_columns(index)) def setModelData(self, editor, model, index): if isinstance(editor, EditWithComplete):