From cf4ea429f648d555b4f60eaaa05b3223131a9e9e Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Wed, 13 Jun 2012 16:28:20 +0200 Subject: [PATCH] Fix focus issue with native cocoa views by turning off alien widgets --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 870bded10..9b360299d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -125,6 +125,10 @@ main( int argc, char *argv[] ) // This must go before QApplication initialisation. Tomahawk::macMain(); + // Fixes focus issue with NSSearchField, see QTBUG-11401 + // code taken from clementine:main.cpp:336 + QCoreApplication::setAttribute( Qt::AA_NativeWindows, true ); + // used for url handler AEEventHandlerUPP h = AEEventHandlerUPP( appleEventHandler ); AEInstallEventHandler( 'GURL', 'GURL', h, 0, false );