mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[solver] Delete equation at first backspace event (instead of clearing
the expression as in Graph/Sequence)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user