[apps] Factor Shared::TextFieldDelegateApp::isAcceptableText

This commit is contained in:
Ruben Dashyan
2019-07-19 11:24:42 +02:00
committed by EmilieNumworks
parent ff887ec4a0
commit 9611133276
2 changed files with 5 additions and 3 deletions

View File

@@ -121,7 +121,6 @@ bool EditExpressionController::inputViewDidReceiveEvent(Ion::Events::Event event
/* The input text store in m_cacheBuffer might have beed correct the first
* time but then be too long when replacing ans in another context */
if (!app()->isAcceptableText(m_cacheBuffer)) {
app()->displayWarning(I18n::Message::SyntaxError);
return true;
}
m_calculationStore->push(m_cacheBuffer, app()->localContext());