Skip to content

Commit 2bba632

Browse files
iFedakauglide
authored andcommitted
fix RedisInsight#4286 (change text format before creating model)
1 parent 57fe2e6 commit 2bba632

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/qml/value-editor/editors/MultilineEditor.qml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,13 @@ ColumnLayout
156156
uiBlocker.visible = false
157157
})
158158
} else {
159+
textView.textFormat = (format === "html")
160+
? TextEdit.RichText
161+
: TextEdit.PlainText;
162+
159163
textView.model = qmlUtils.wrapLargeText(formatted)
160164
textView.readOnly = isReadOnly
161165
root.isEdited = false
162-
163-
if (format === "html")
164-
textView.textFormat = TextEdit.RichText
165-
else
166-
textView.textFormat = TextEdit.PlainText
167166
}
168167

169168
uiBlocker.visible = false

0 commit comments

Comments
 (0)