1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +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()
{
qDebug() << Q_FUNC_INFO;
qDebug() << Q_FUNC_INFO << " using nam " << m_infoSystemWorker->nam();
lastfm::setNetworkAccessManager( m_infoSystemWorker->nam() );
settingsChanged(); // to get the scrobbler set up
}
@@ -412,6 +413,7 @@ LastFmPlugin::settingsChanged()
TomahawkSettings::instance()->lastFmPassword() != m_pw )
{
lastfm::ws::Username = TomahawkSettings::instance()->lastFmUsername();
m_pw = TomahawkSettings::instance()->lastFmPassword();
// credentials have changed, have to re-create scrobbler for them to take effect
if( m_scrobbler )
delete m_scrobbler;

View File

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