mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
Move scrobbler init far down where it belongs
This commit is contained in:
@@ -179,11 +179,8 @@ TomahawkApp::init()
|
|||||||
registerMetaTypes();
|
registerMetaTypes();
|
||||||
|
|
||||||
#ifdef LIBLASTFM_FOUND
|
#ifdef LIBLASTFM_FOUND
|
||||||
qDebug() << "Init Scrobbler.";
|
|
||||||
m_scrobbler = new Scrobbler( this );
|
|
||||||
qDebug() << "Setting NAM.";
|
qDebug() << "Setting NAM.";
|
||||||
TomahawkUtils::setNam( lastfm::nam() );
|
TomahawkUtils::setNam( lastfm::nam() );
|
||||||
|
|
||||||
#else
|
#else
|
||||||
qDebug() << "Setting NAM.";
|
qDebug() << "Setting NAM.";
|
||||||
TomahawkUtils::setNam( new QNetworkAccessManager() );
|
TomahawkUtils::setNam( new QNetworkAccessManager() );
|
||||||
@@ -281,6 +278,11 @@ TomahawkApp::init()
|
|||||||
m_mainwindow->showSettingsDialog();
|
m_mainwindow->showSettingsDialog();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef LIBLASTFM_FOUND
|
||||||
|
qDebug() << "Init Scrobbler.";
|
||||||
|
m_scrobbler = new Scrobbler( this );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user