[apps] Sequence: when setting a next first term index, forbid negative

index
This commit is contained in:
Émilie Feral
2018-01-24 11:22:49 +01:00
committed by EmilieNumworks
parent 56c6c17b57
commit 479d86a38e

View File

@@ -131,6 +131,7 @@ bool ListParameterController::textFieldDidFinishEditing(TextField * textField, c
}
if (index < 0) {
app()->displayWarning(I18n::Message::ForbiddenValue);
return false;
}
m_sequence->setInitialRank(index);
// Invalidate sequence context cache when changing sequence type