mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
Fix spinbox not validating the second time an invalid value is entered
This commit is contained in:
parent
11178d80f7
commit
537665c22a
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ SpinBox {
|
||||||
}
|
}
|
||||||
|
|
||||||
valueFromText: function(text, locale) {
|
valueFromText: function(text, locale) {
|
||||||
|
spinBox.value = 0; // Force valueChanged signal to be emitted so that validator fires.
|
||||||
return Number.fromLocaleString(locale, text)*factor;
|
return Number.fromLocaleString(locale, text)*factor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue