Skip to content

Commit 5886c21

Browse files
committed
Fix regression in MultilineEditor
Fix RedisInsight#4737
1 parent 6abd5fe commit 5886c21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ ColumnLayout
112112
if (qmlUtils.binaryStringLength(root.value) > valueSizeLimit) {
113113
root.showFormatters = false
114114
formatterSelector.currentIndex = 0
115+
guessFormatter = false
115116
} else {
116117
root.showFormatters = true
117118
}
@@ -290,7 +291,10 @@ ColumnLayout
290291
textRole: "name"
291292
objectName: "rdm_value_editor_formatter_combobox"
292293

293-
onCurrentIndexChanged: loadFormattedValue()
294+
onActivated: {
295+
currentIndex = index
296+
loadFormattedValue()
297+
}
294298
}
295299

296300
Text { visible: !showFormatters && qmlUtils.binaryStringLength(root.value) > valueSizeLimit; text: qsTranslate("RDM","Large value (>150kB). Formatters is not available."); color: "red"; }

0 commit comments

Comments
 (0)