diff --git a/src/qtgui/ssearch_w.cpp b/src/qtgui/ssearch_w.cpp index 145e7c27..894eebfb 100644 --- a/src/qtgui/ssearch_w.cpp +++ b/src/qtgui/ssearch_w.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include "log.h" #include "guiutils.h" @@ -709,7 +710,7 @@ bool SSearch::eventFilter(QObject *target, QEvent *event) LOGDEB2("SSearch::eventFilter: target " << (target) << " (" << (queryText->lineEdit()) << ") type " << (eventTypeToStr(event->type())) << "\n" ); #endif - if (target == queryText->view()) { + if (target == (QObject*)(queryText->view())) { if (event->type() == QEvent::Hide) { // List was closed. If we were displaying completions, need // to reset state.