diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-13 13:54:38 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-13 13:54:38 +0100 |
commit | 87e166812794559b13741c70e1de5d3280a3ff17 (patch) | |
tree | e41e9af652cdba557af06bdc72df9400e237f8db /src | |
parent | dc505ea036e9f2cd9ec655d142d60ea97aebbf0a (diff) |
Don't allow "move right" in Automatizer when there's nowhere to move
Diffstat (limited to 'src')
-rw-r--r-- | src/squelch/cursor.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/squelch/cursor.cc b/src/squelch/cursor.cc index db2f416d..3a3bec46 100644 --- a/src/squelch/cursor.cc +++ b/src/squelch/cursor.cc @@ -32,6 +32,9 @@ Condition *Cursor::current() void Cursor::move_right() { + if (m_conditions.empty()) { + return; + } // Go right if the currently selected condition has children. std::shared_ptr<Condition> c = current()->first_child(); if (c) |