1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +02:00

More debug and a fix

This commit is contained in:
Jeff Mitchell
2011-05-03 14:48:17 -04:00
parent a8ad8cd774
commit b8bb29161f
2 changed files with 4 additions and 2 deletions

View File

@@ -99,6 +99,7 @@ void
LastFmPlugin::namChangedSlot() LastFmPlugin::namChangedSlot()
{ {
qDebug() << Q_FUNC_INFO; qDebug() << Q_FUNC_INFO;
qDebug() << Q_FUNC_INFO << " using nam " << m_infoSystemWorker->nam();
lastfm::setNetworkAccessManager( m_infoSystemWorker->nam() ); lastfm::setNetworkAccessManager( m_infoSystemWorker->nam() );
settingsChanged(); // to get the scrobbler set up settingsChanged(); // to get the scrobbler set up
} }
@@ -412,6 +413,7 @@ LastFmPlugin::settingsChanged()
TomahawkSettings::instance()->lastFmPassword() != m_pw ) TomahawkSettings::instance()->lastFmPassword() != m_pw )
{ {
lastfm::ws::Username = TomahawkSettings::instance()->lastFmUsername(); lastfm::ws::Username = TomahawkSettings::instance()->lastFmUsername();
m_pw = TomahawkSettings::instance()->lastFmPassword();
// credentials have changed, have to re-create scrobbler for them to take effect // credentials have changed, have to re-create scrobbler for them to take effect
if( m_scrobbler ) if( m_scrobbler )
delete m_scrobbler; delete m_scrobbler;

View File

@@ -229,8 +229,8 @@ lastfm::setNetworkAccessManager( QNetworkAccessManager* nam )
threadNamHash[thread] = nam; threadNamHash[thread] = nam;
ourNamHash[thread] = false; ourNamHash[thread] = false;
if ( oldNam ) //if ( oldNam )
delete oldNam; // delete oldNam;
} }