From: Flavio Tordini Date: Fri, 24 Jul 2015 07:35:43 +0000 (+0200) Subject: Fix popup not reappearing with Qt5 X-Git-Tag: 2.5~67 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b6c2c37b926ddd9f1b2b132b2a38beb351b9e22a;p=minitube Fix popup not reappearing with Qt5 --- diff --git a/src/autocomplete.cpp b/src/autocomplete.cpp index 1cd6dd4..84c11de 100644 --- a/src/autocomplete.cpp +++ b/src/autocomplete.cpp @@ -19,13 +19,16 @@ along with Minitube. If not, see . $END_LICENSE */ #include "autocomplete.h" #include "suggester.h" -#ifdef APP_MAC +#ifdef APP_MAC_SEARCHFIELD #include "searchlineedit_mac.h" -#include "macutils.h" #else #include "searchlineedit.h" #endif +#ifdef APP_MAC +#include "macutils.h" +#endif + #include #ifndef QT_NO_DEBUG_OUTPUT @@ -176,7 +179,7 @@ void AutoComplete::showSuggestions(const QList &suggestions) { if (popup->isHidden()) { itemHovering = false; - popup->show(); + popup->showNormal(); QTimer::singleShot(100, this, SLOT(enableItemHovering())); } } @@ -242,7 +245,7 @@ void AutoComplete::enableItemHovering() { void AutoComplete::hideSuggestions() { itemHovering = false; -#ifdef APP_MAC +#ifdef APP_MAC_NO mac::fadeOutWindow(popup); #else popup->hide();