1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Extra safety

This commit is contained in:
Jeff Mitchell 2011-08-30 11:55:47 -04:00
parent 58bff6af4c
commit 2bedc3bdd0

@ -87,6 +87,7 @@ LastFmPlugin::~LastFmPlugin()
{
qDebug() << Q_FUNC_INFO;
delete m_scrobbler;
m_scrobbler = 0;
}
@ -753,7 +754,10 @@ LastFmPlugin::settingsChanged()
m_pw = TomahawkSettings::instance()->lastFmPassword();
// credentials have changed, have to re-create scrobbler for them to take effect
if( m_scrobbler )
{
delete m_scrobbler;
m_scrobbler = 0;
}
createScrobbler();
}