1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 17:29:42 +01:00

remove associated actions when deleting spotify account

This commit is contained in:
Leo Franchi 2012-04-09 22:20:49 -04:00
parent 3cb079b014
commit f51f5e4d59
2 changed files with 8 additions and 1 deletions

View File

@ -82,6 +82,13 @@ SpotifyAccount::SpotifyAccount( const QString& accountId, const QString& path )
}
SpotifyAccount::~SpotifyAccount()
{
foreach( QAction* action, m_customActions )
ActionCollection::instance()->removeAction( action );
}
void
SpotifyAccount::init()
{

View File

@ -77,7 +77,7 @@ class SpotifyAccount : public ResolverAccount
public:
SpotifyAccount( const QString& accountId );
SpotifyAccount( const QString& accountId, const QString& path );
virtual ~SpotifyAccount() {}
virtual ~SpotifyAccount();
virtual QPixmap icon() const;
virtual QWidget* configurationWidget();