mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] Fixed assertion bug in MenuController.
The assert should take into account the fact that there might not be any script. Change-Id: I68f0e5071ffd011fc5bb1dacc035d2127bdd8176
This commit is contained in:
@@ -52,7 +52,7 @@ void MenuController::didBecomeFirstResponder() {
|
||||
if (m_selectableTableView.selectedRow() < 0) {
|
||||
m_selectableTableView.selectCellAtLocation(0,0);
|
||||
}
|
||||
assert(m_selectableTableView.selectedRow() < m_scriptStore->numberOfScripts());
|
||||
assert(m_selectableTableView.selectedRow() < m_scriptStore->numberOfScripts() + 1);
|
||||
app()->setFirstResponder(&m_selectableTableView);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user