mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-04 21:29:21 +00:00
Check m_entry against size() in set_entry
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user