mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 06:10:31 +01:00
[apps] Do not allow store expressions except in Calculation
This commit is contained in:
@@ -38,18 +38,4 @@ void StorageFunctionApp::willBecomeInactive() {
|
||||
::App::willBecomeInactive();
|
||||
}
|
||||
|
||||
|
||||
bool StorageFunctionApp::isAcceptableExpression(const Expression exp, Responder * responder) {
|
||||
if (TextFieldDelegateApp::isAcceptableExpression(exp, responder)) {
|
||||
assert(!exp.isUninitialized());
|
||||
if (exp.type() == ExpressionNode::Type::Store) {
|
||||
// We do not want to allow a function to be "3->a" or "5->f(x)"
|
||||
responder->app()->displayWarning(I18n::Message::StoreExpressionNotAcceptedAsFunction);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user