Fixed mode updating under GTK

This commit is contained in:
YuSanka 2018-10-22 15:18:05 +02:00
parent 2a2d1d85f8
commit 3ecb65d62c
4 changed files with 10 additions and 2 deletions

View file

@ -476,7 +476,7 @@ void Tab::get_sys_and_mod_flags(const std::string& opt_key, bool& sys_page, bool
void Tab::update_changed_tree_ui()
{
auto cur_item = m_treectrl->GetFirstVisibleItem();
if (!m_treectrl->IsVisible(cur_item))
if (!cur_item || !m_treectrl->IsVisible(cur_item))
return;
auto selection = m_treectrl->GetItemText(m_treectrl->GetSelection());
while (cur_item){