mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 16:50:50 +01:00
[apps] Correct bug: display warning only once !
Change-Id: I474aa564da189a548ef36ca9990ce627e0b50acc
This commit is contained in:
@@ -21,6 +21,7 @@ void IntervalParameterController::willDisplayCellForIndex(HighlightCell * cell,
|
||||
|
||||
bool IntervalParameterController::setParameterAtIndex(int parameterIndex, float f) {
|
||||
if (f < 0) {
|
||||
app()->displayWarning(I18n::Message::ForbiddenValue);
|
||||
return false;
|
||||
}
|
||||
SetterPointer setters[k_totalNumberOfCell] = {&Interval::setStart, &Interval::setEnd, &Interval::setStep};
|
||||
|
||||
Reference in New Issue
Block a user