Skip to content

Commit

Permalink
fix: [search] When the window reactivates, the search bar is not hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Kakueeen committed Jan 8, 2024
1 parent fc76485 commit 558564c
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,14 +597,6 @@ void AddressBar::showOnFocusLostOnce()

bool AddressBar::event(QEvent *e)
{
// blumia: When window lost focus and then get activated, we should hide
// addressbar if it's visiable.
if (e->type() == QEvent::WindowActivate) {
if (!hasFocus() && isVisible()) {
Q_EMIT lostFocus();
}
}

if (e->type() == QEvent::KeyPress) {
keyPressEvent(static_cast<QKeyEvent *>(e));
return true;
Expand Down

0 comments on commit 558564c

Please sign in to comment.