1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 16:59:58 +01:00

Move scrobbler init far down where it belongs

This commit is contained in:
Jeff Mitchell 2011-05-03 13:13:04 -04:00
parent e6819d48a8
commit 8b2ce768d1

View File

@ -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
}