mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Merge branch 'cas_with_app_copy' into python_console
This commit is contained in:
@@ -79,11 +79,10 @@ bool TextFieldDelegateApp::textFieldShouldFinishEditing(TextField * textField, I
|
||||
bool TextFieldDelegateApp::textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) {
|
||||
if (textField->textFieldShouldFinishEditing(event) && textField->isEditing()) {
|
||||
Expression * exp = Expression::parse(textField->text());
|
||||
bool invalidText = (exp == nullptr || !exp->hasValidNumberOfArguments());
|
||||
if (exp != nullptr) {
|
||||
delete exp;
|
||||
}
|
||||
if (invalidText) {
|
||||
if (exp == nullptr) {
|
||||
textField->app()->displayWarning(I18n::Message::SyntaxError);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user