mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[apps/sequence][apps/graph] fix behaviour when deleting functions
Change-Id: Ieccc85887fa0077446aaf57fee105b7fd2f3bff9
This commit is contained in:
@@ -208,7 +208,7 @@ bool ListController::handleEvent(Ion::Events::Event event) {
|
||||
if (event == Ion::Events::Backspace && selectedRow() >= 0 &&
|
||||
(selectedRow() < numberOfRows() - 1 || m_functionStore->numberOfFunctions() == m_functionStore->maxNumberOfFunctions())) {
|
||||
Shared::Function * function = m_functionStore->functionAtIndex(functionIndexForRow(selectedRow()));
|
||||
if (selectedColumn() == 1) {
|
||||
if (selectedColumn() == 1 && !function->isEmpty()) {
|
||||
reinitExpression(function);
|
||||
} else {
|
||||
removeFunctionRow(function);
|
||||
|
||||
Reference in New Issue
Block a user