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:
parent
e18594994c
commit
cf4ea429f6
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user