Skip to content

Commit

Permalink
Fix validation in MultilineEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
uglide committed Mar 2, 2018
1 parent c25977a commit 6011ea7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/qml/value-editor/editors/MultilineEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ ColumnLayout
}

function validate(callback) {
loadRawValue(function (error, raw) {
loadRawValue(function (error, raw) {

if (error) {
notification.showError(error)
return callback(false);
}
}

var valid = raw.length > 0
var valid = qmlUtils.binaryStringLength(raw) > 0

if (valid) {
hideValidationError()
Expand Down

0 comments on commit 6011ea7

Please sign in to comment.