diff --git a/src/tomahawkapp.cpp b/src/tomahawkapp.cpp index 2fe77f18f..fd81dc116 100644 --- a/src/tomahawkapp.cpp +++ b/src/tomahawkapp.cpp @@ -179,11 +179,8 @@ TomahawkApp::init() registerMetaTypes(); #ifdef LIBLASTFM_FOUND - qDebug() << "Init Scrobbler."; - m_scrobbler = new Scrobbler( this ); qDebug() << "Setting NAM."; TomahawkUtils::setNam( lastfm::nam() ); - #else qDebug() << "Setting NAM."; TomahawkUtils::setNam( new QNetworkAccessManager() ); @@ -281,6 +278,11 @@ TomahawkApp::init() m_mainwindow->showSettingsDialog(); } #endif + +#ifdef LIBLASTFM_FOUND + qDebug() << "Init Scrobbler."; + m_scrobbler = new Scrobbler( this ); +#endif }