[apps] Correct bug: display warning only once !

Change-Id: I474aa564da189a548ef36ca9990ce627e0b50acc
This commit is contained in:
Émilie Feral
2017-04-13 16:04:01 +02:00
parent ba1d7cf604
commit 1f84157395
3 changed files with 5 additions and 1 deletions

View File

@@ -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};