From 05492a89e6e5f49c4e26049472ef4d420cfa171f Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 19 Jul 2017 12:39:36 +0200 Subject: [PATCH] LocationCompleterView: Fix selecting items with mouse See #2365 --- src/lib/navigation/completer/locationcompleterview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/navigation/completer/locationcompleterview.cpp b/src/lib/navigation/completer/locationcompleterview.cpp index f53d813ee..08d3ee24f 100644 --- a/src/lib/navigation/completer/locationcompleterview.cpp +++ b/src/lib/navigation/completer/locationcompleterview.cpp @@ -224,7 +224,7 @@ bool LocationCompleterView::eventFilter(QObject* object, QEvent* event) case QEvent::FocusOut: { QFocusEvent *focusEvent = static_cast(event); - if (focusEvent->reason() != Qt::PopupFocusReason) { + if (focusEvent->reason() != Qt::PopupFocusReason && focusEvent->reason() != Qt::MouseFocusReason) { close(); } break;