]> git.sur5r.net Git - minitube/commitdiff
Fix popup not reappearing with Qt5
authorFlavio Tordini <flavio.tordini@gmail.com>
Fri, 24 Jul 2015 07:35:43 +0000 (09:35 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Fri, 24 Jul 2015 07:35:43 +0000 (09:35 +0200)
src/autocomplete.cpp

index 1cd6dd4ee678782605268e3e3276533e2f810a39..84c11dec3eb802969d695803875bd076f2ceef1f 100644 (file)
@@ -19,13 +19,16 @@ along with Minitube.  If not, see <http://www.gnu.org/licenses/>.
 $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 <QListWidget>
 
 #ifndef QT_NO_DEBUG_OUTPUT
@@ -176,7 +179,7 @@ void AutoComplete::showSuggestions(const QList<Suggestion *> &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();