https://bugs.kde.org/show_bug.cgi?id=350409
Kevin Funk <kf...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david.nolden.kde@art-master | |.de --- Comment #3 from Kevin Funk <kf...@kde.org> --- Note: I had a fix for this the other night, but then ran into other problems caused by the patch. Any other solution attempt caused other (subtle) issues with window handling/etc.. Then I lost motivation because there so many corner cases to pay attention too... One of my patches is here: This fixes the problem described in the bug report, but with this patch the quick open window is not closed anymore when you Alt+Tab out of KDevelop for instance... So if anyone wants to pick up... I'm fed up with looking at quickopen code :) @zwabel: You maybe? commit 71595ebb46b6b06aad7230e9cd3d856ba1f8331c Author: Kevin Funk <kf...@kde.org> Date: Sat Feb 13 02:36:00 2016 +0100 Outline widget: Accept clicks again There's still one issue: The editor window doesn't get back focus properly after double-clicking on an entry in the list. You can type, but not invoke any shortcuts (Ctrl-Z, for instance). BUG: 350409 diff --git a/plugins/quickopen/quickopenplugin.cpp b/plugins/quickopen/quickopenplugin.cpp index 7aa9db6..36c7854 100644 --- a/plugins/quickopen/quickopenplugin.cpp +++ b/plugins/quickopen/quickopenplugin.cpp @@ -1007,8 +1007,10 @@ bool QuickOpenLineEdit::eventFilter(QObject* obj, QEvent* e) { } break; case QEvent::WindowActivate: - case QEvent::WindowDeactivate: - qCDebug(PLUGIN_QUICKOPEN) << "closing because of window activation"; + if (m_widget->isAncestorOf(qobject_cast<QWidget*>(obj))) + return false; + + qCDebug(PLUGIN_QUICKOPEN) << "closing because of window activation" << obj; deactivate(); break; // handle bug 260657 - "Outline menu doesn't follow main window on its move" -- You are receiving this mail because: You are watching all bug changes.