Skip to content

Commit 6011ea7

Browse files
committed
Fix validation in MultilineEditor
1 parent c25977a commit 6011ea7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ ColumnLayout
2727
}
2828

2929
function validate(callback) {
30-
loadRawValue(function (error, raw) {
30+
loadRawValue(function (error, raw) {
31+
3132
if (error) {
3233
notification.showError(error)
3334
return callback(false);
34-
}
35+
}
3536

36-
var valid = raw.length > 0
37+
var valid = qmlUtils.binaryStringLength(raw) > 0
3738

3839
if (valid) {
3940
hideValidationError()

0 commit comments

Comments
 (0)