Removed unnecessary conditions that interfere with the search.

This commit is contained in:
YuSanka 2021-07-21 14:46:40 +02:00
parent 7acaf58c15
commit c7051c9005
2 changed files with 2 additions and 2 deletions

View file

@ -1172,7 +1172,7 @@ void Tab::activate_option(const std::string& opt_key, const wxString& category)
wxString page_title = translate_category(category, m_type);
auto cur_item = m_treectrl->GetFirstVisibleItem();
if (!cur_item || !m_treectrl->IsVisible(cur_item))
if (!cur_item)
return;
while (cur_item) {