1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

LocationCompleterView: Fix selecting items with mouse

See #2365
This commit is contained in:
David Rosca 2017-07-19 12:39:36 +02:00
parent 9f266ac1e0
commit 05492a89e6

View File

@ -224,7 +224,7 @@ bool LocationCompleterView::eventFilter(QObject* object, QEvent* event)
case QEvent::FocusOut: {
QFocusEvent *focusEvent = static_cast<QFocusEvent*>(event);
if (focusEvent->reason() != Qt::PopupFocusReason) {
if (focusEvent->reason() != Qt::PopupFocusReason && focusEvent->reason() != Qt::MouseFocusReason) {
close();
}
break;