mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +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.
|
// This must go before QApplication initialisation.
|
||||||
Tomahawk::macMain();
|
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
|
// used for url handler
|
||||||
AEEventHandlerUPP h = AEEventHandlerUPP( appleEventHandler );
|
AEEventHandlerUPP h = AEEventHandlerUPP( appleEventHandler );
|
||||||
AEInstallEventHandler( 'GURL', 'GURL', h, 0, false );
|
AEInstallEventHandler( 'GURL', 'GURL', h, 0, false );
|
||||||
|
Reference in New Issue
Block a user