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

Initialise QCA before QCoreApplication

* Fixes segfaults with QCA head on randomInt()
This commit is contained in:
Uwe L. Korn 2014-03-05 17:26:43 +00:00
parent 73f4747028
commit 375f9f90d8

View File

@ -26,6 +26,8 @@
#include "config.h"
#include "utils/Logger.h"
#include "qca.h"
#ifdef Q_WS_MAC
#include "TomahawkApp_Mac.h"
#include </System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/Headers/AppleEvents.h>
@ -128,6 +130,9 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine
int
main( int argc, char *argv[] )
{
QCA::Initializer init;
Q_UNUSED( init )
#ifdef Q_WS_MAC
// Do Mac specific startup to get media keys working.
// This must go before QApplication initialisation.