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:
@@ -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;
|
||||||
|
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;
|
threadNamHash[thread] = nam;
|
||||||
ourNamHash[thread] = false;
|
ourNamHash[thread] = false;
|
||||||
|
|
||||||
if ( oldNam )
|
//if ( oldNam )
|
||||||
delete oldNam;
|
// delete oldNam;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user