diff --git a/apps/sequence/list/sequence_toolbox.cpp b/apps/sequence/list/sequence_toolbox.cpp index f46eab7d1..8302f50bb 100644 --- a/apps/sequence/list/sequence_toolbox.cpp +++ b/apps/sequence/list/sequence_toolbox.cpp @@ -25,8 +25,8 @@ SequenceToolbox::~SequenceToolbox() { } bool SequenceToolbox::handleEvent(Ion::Events::Event event) { - if (selectedRow() < m_numberOfAddedCells) { - if ((event == Ion::Events::OK || event == Ion::Events::EXE) && stackDepth() == 0) { + if (selectedRow() < m_numberOfAddedCells && stackDepth() == 0) { + if (event == Ion::Events::OK || event == Ion::Events::EXE) { return selectAddedCell(selectedRow()); } return false;