diff --git a/src/main.cpp b/src/main.cpp index c2298dc94..feb3cb1f8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,22 +35,21 @@ int main( int argc, char *argv[] ) { #ifdef Q_WS_MAC - // Do Mac specific startup to get media keys working. - // This must go before QApplication initialisation. - Tomahawk::macMain(); + // Do Mac specific startup to get media keys working. + // This must go before QApplication initialisation. + Tomahawk::macMain(); - // used for url handler - AEEventHandlerUPP h = AEEventHandlerUPP( appleEventHandler ); - AEInstallEventHandler( 'GURL', 'GURL', h, 0, false ); + // used for url handler + AEEventHandlerUPP h = AEEventHandlerUPP( appleEventHandler ); + AEInstallEventHandler( 'GURL', 'GURL', h, 0, false ); #endif - // Unity hack taken from Clementine's main.cpp #ifdef Q_OS_LINUX // In 11.04 Ubuntu decided that the system tray should be reserved for certain // whitelisted applications. Tomahawk will override this setting and insert // itself into the list of whitelisted apps. - setenv("QT_X11_NO_NATIVE_MENUBAR", "1", true); + setenv( "QT_X11_NO_NATIVE_MENUBAR", "1", true ); UbuntuUnityHack hack; #endif diff --git a/src/tomahawkapp.cpp b/src/tomahawkapp.cpp index 15032c013..87fe02964 100644 --- a/src/tomahawkapp.cpp +++ b/src/tomahawkapp.cpp @@ -132,7 +132,7 @@ TomahawkApp::init() if ( arguments().contains( "--help" ) || arguments().contains( "-h" ) ) { printHelp(); - ::exit(0); + ::exit( 0 ); } qDebug() << "TomahawkApp thread:" << thread(); @@ -286,8 +286,9 @@ TomahawkApp::~TomahawkApp() if ( !m_audioEngine.isNull() ) delete m_audioEngine.data(); - if ( !m_infoSystem.isNull() ) - delete m_infoSystem.data(); + +/* if ( !m_infoSystem.isNull() ) + delete m_infoSystem.data(); */ // FIXME: this causes a shutdown crash on Windows //FIXME: delete GeneratorFactory::registerFactory( "echonest", new EchonestFactory ); ? diff --git a/src/tomahawkapp.h b/src/tomahawkapp.h index 9d76916b1..c845fdf5b 100644 --- a/src/tomahawkapp.h +++ b/src/tomahawkapp.h @@ -111,8 +111,6 @@ private: void initHTTP(); - QList m_collections; - QWeakPointer m_database; QWeakPointer m_scanManager; QWeakPointer m_audioEngine;