mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] Fixed selection bug in VariableBoxController.
Change-Id: I8fcbdd6e181453bb8fbee7b4efc8573ca112c6a2
This commit is contained in:
@@ -85,6 +85,9 @@ bool VariableBoxController::ContentViewController::handleEvent(Ion::Events::Even
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::OK || event == Ion::Events::EXE) {
|
||||
if (m_selectableTableView.selectedRow() < 0 || m_selectableTableView.selectedRow() >= m_scriptNodesCount) {
|
||||
return false;
|
||||
}
|
||||
ScriptNode selectedScriptNode = m_scriptNodes[m_selectableTableView.selectedRow()];
|
||||
insertTextInCaller(selectedScriptNode.name());
|
||||
if (selectedScriptNode.type() == ScriptNode::Type::Function) {
|
||||
|
||||
Reference in New Issue
Block a user