mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
fix fatal error on editing texbox not having any consumer
This commit is contained in:
parent
5e9b290aea
commit
22fa082fc6
1 changed files with 1 additions and 1 deletions
|
|
@ -504,7 +504,7 @@ void TextBox::performEditingKeyboardEvents(keycode key) {
|
||||||
paste(L"\n");
|
paste(L"\n");
|
||||||
} else {
|
} else {
|
||||||
defocus();
|
defocus();
|
||||||
if (validate()) {
|
if (validate() && consumer) {
|
||||||
consumer(label->getText());
|
consumer(label->getText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue