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:
@@ -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;
|
||||
|
4
thirdparty/liblastfm2/src/ws/ws.cpp
vendored
4
thirdparty/liblastfm2/src/ws/ws.cpp
vendored
@@ -229,8 +229,8 @@ lastfm::setNetworkAccessManager( QNetworkAccessManager* nam )
|
||||
threadNamHash[thread] = nam;
|
||||
ourNamHash[thread] = false;
|
||||
|
||||
if ( oldNam )
|
||||
delete oldNam;
|
||||
//if ( oldNam )
|
||||
// delete oldNam;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user