[apps] Clean the syntax error warning displaying

This commit is contained in:
Léa Saviot
2018-11-19 16:21:29 +01:00
committed by Émilie Feral
parent 97d7955d15
commit f5586b3d36
6 changed files with 12 additions and 16 deletions

View File

@@ -130,7 +130,8 @@ bool EditExpressionController::inputViewDidReceiveEvent(Ion::Events::Event event
App * calculationApp = (App *)app();
/* 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 (!calculationApp->isAcceptableText(m_cacheBuffer, calculationApp)) {
if (!calculationApp->isAcceptableText(m_cacheBuffer)) {
calculationApp->displayWarning(I18n::Message::SyntaxError);
return true;
}
m_calculationStore->push(m_cacheBuffer, calculationApp->localContext());