From b8bb29161f99e8377ef3f34b89165bc8c25593fd Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 3 May 2011 14:48:17 -0400 Subject: [PATCH] More debug and a fix --- src/libtomahawk/infosystem/infoplugins/lastfmplugin.cpp | 2 ++ thirdparty/liblastfm2/src/ws/ws.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/infosystem/infoplugins/lastfmplugin.cpp b/src/libtomahawk/infosystem/infoplugins/lastfmplugin.cpp index 7dbbcf0f8..12355d668 100644 --- a/src/libtomahawk/infosystem/infoplugins/lastfmplugin.cpp +++ b/src/libtomahawk/infosystem/infoplugins/lastfmplugin.cpp @@ -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; diff --git a/thirdparty/liblastfm2/src/ws/ws.cpp b/thirdparty/liblastfm2/src/ws/ws.cpp index 3dc1631fa..017a81b56 100644 --- a/thirdparty/liblastfm2/src/ws/ws.cpp +++ b/thirdparty/liblastfm2/src/ws/ws.cpp @@ -229,8 +229,8 @@ lastfm::setNetworkAccessManager( QNetworkAccessManager* nam ) threadNamHash[thread] = nam; ourNamHash[thread] = false; - if ( oldNam ) - delete oldNam; + //if ( oldNam ) + // delete oldNam; }