From 558564cf9b9fc303d970f38775fdab962c81b963 Mon Sep 17 00:00:00 2001 From: liuzhangjian Date: Mon, 8 Jan 2024 17:48:03 +0800 Subject: [PATCH] fix: [search] When the window reactivates, the search bar is not hidden as title Log: fix bug Bug: https://pms.uniontech.com/bug-view-220555.html --- .../core/dfmplugin-titlebar/views/addressbar.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/plugins/filemanager/core/dfmplugin-titlebar/views/addressbar.cpp b/src/plugins/filemanager/core/dfmplugin-titlebar/views/addressbar.cpp index 636a6cb929..ba7c03ffa4 100644 --- a/src/plugins/filemanager/core/dfmplugin-titlebar/views/addressbar.cpp +++ b/src/plugins/filemanager/core/dfmplugin-titlebar/views/addressbar.cpp @@ -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(e)); return true;