1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Fix focus issue with native cocoa views by turning off alien widgets

This commit is contained in:
Leo Franchi 2012-06-13 16:28:20 +02:00
parent e18594994c
commit cf4ea429f6

View File

@ -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 );