FIX:fixed clicking on first item has no effect in search dialog

Change-Id: Ifdbbf06a8b5c780155e394003470f6fa39a2b4c2
This commit is contained in:
tao wang 2022-10-10 15:53:11 +08:00 committed by Lane.Wei
parent efec8fef2f
commit 0761cbd1cb
2 changed files with 3 additions and 3 deletions

View file

@ -316,7 +316,7 @@ void Tab::create_preset_tab()
this->GetParent()->Update();
this->GetParent()->Layout();
wxGetApp().plater()->search(false, m_type, m_search_item, m_search_input, m_btn_search);
wxGetApp().plater()->search(false, m_type, m_top_panel->GetParent(), m_search_input, m_btn_search);
m_search_input->SetFocus();
Thaw();