mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
Extra safety
This commit is contained in:
@@ -87,6 +87,7 @@ LastFmPlugin::~LastFmPlugin()
|
|||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO;
|
qDebug() << Q_FUNC_INFO;
|
||||||
delete m_scrobbler;
|
delete m_scrobbler;
|
||||||
|
m_scrobbler = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -753,7 +754,10 @@ LastFmPlugin::settingsChanged()
|
|||||||
m_pw = TomahawkSettings::instance()->lastFmPassword();
|
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;
|
||||||
|
m_scrobbler = 0;
|
||||||
|
}
|
||||||
|
|
||||||
createScrobbler();
|
createScrobbler();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user