FIX:search dialog cannot open
reason:search_line window modified by darkmode-commit Change-Id: I1a6c58362b2d1eff506b62a97d908b95dc591ff9
This commit is contained in:
parent
b65d47b544
commit
56a98390f9
|
@ -639,10 +639,9 @@ void SearchDialog::OnDismiss() { }
|
|||
void SearchDialog::Dismiss()
|
||||
{
|
||||
auto pos = wxGetMousePosition();
|
||||
|
||||
if (!search_line->HasFocus() && !this->HasFocus()) {
|
||||
auto focus_window = wxWindow::FindFocus();
|
||||
if (!focus_window)
|
||||
Die();
|
||||
}
|
||||
else if (!m_event_tag->GetScreenRect().Contains(pos) && !this->GetScreenRect().Contains(pos) && !m_search_item_tag->GetScreenRect().Contains(pos)) {
|
||||
Die();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue