[solver] Delete equation at first backspace event (instead of clearing

the expression as in Graph/Sequence)
This commit is contained in:
Émilie Feral
2018-06-04 16:54:43 +02:00
parent bc33b10368
commit 56d23c213d
3 changed files with 7 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ bool ExpressionModelListController::handleEventOnExpression(Ion::Events::Event e
}
if (event == Ion::Events::Backspace && !isAddEmptyRow(selectedRow())) {
ExpressionModel * model = modelStore()->modelAtIndex(modelIndexForRow(selectedRow()));
if (!model->isEmpty()) {
if (model->shouldBeClearedBeforeRemove()) {
reinitExpression(model);
} else {
if (removeModelRow(model)) {