mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
parent
08274f5bbe
commit
d3153355d7
|
@ -193,7 +193,9 @@ bool LocationCompleterView::eventFilter(QObject* object, QEvent* event)
|
|||
break;
|
||||
} // switch (keyEvent->key())
|
||||
|
||||
if (focusProxy()) {
|
||||
(static_cast<QObject*>(focusProxy()))->event(keyEvent);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -233,7 +235,7 @@ bool LocationCompleterView::eventFilter(QObject* object, QEvent* event)
|
|||
case QEvent::Move:
|
||||
case QEvent::Resize: {
|
||||
QWidget *w = qobject_cast<QWidget*>(object);
|
||||
if (w && w->isWindow() && w == focusProxy()->window()) {
|
||||
if (w && w->isWindow() && focusProxy() && w == focusProxy()->window()) {
|
||||
close();
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user