Check m_entry against size() in set_entry

This commit is contained in:
noctuum
2026-09-28 17:34:21 +05:00
committed by Jari Sundell
parent 8bcc4c6e92
commit 366b936ded
+1 -1
View File
@@ -179,7 +179,7 @@ ElementMenu::set_entry(size_type idx, bool triggerSlot) {
m_entry = idx;
focus_entry(m_entry);
if (triggerSlot)
if (triggerSlot && m_entry < size())
base_type::operator[](m_entry).m_slotFocus();
m_window->mark_dirty();