mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Fix focus issue with native cocoa views by turning off alien widgets
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user