Truly independent web browser
UI/Qt: Check autocomplete event types before finding the window
Callum Law857eb86a570f
diff --git a/UI/Qt/Autocomplete.cpp b/UI/Qt/Autocomplete.cppindex 73a3a9392e1..94cef24d396 100644--- a/UI/Qt/Autocomplete.cpp+++ b/UI/Qt/Autocomplete.cpp@@ -457,7 +457,7 @@ bool Autocomplete::is_visible() constbool Autocomplete::eventFilter(QObject* watched, QEvent* event){auto type = event->type();- if ((watched == m_anchor->window() && first_is_one_of(type, QEvent::Hide, QEvent::Resize)) || (watched == qApp && type == QEvent::Quit)) {+ if ((first_is_one_of(type, QEvent::Hide, QEvent::Resize) && watched == m_anchor->window()) || (watched == qApp && type == QEvent::Quit)) {if (close())emit dismissed();}