1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02: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 void
SpotifyAccount::init() SpotifyAccount::init()
{ {

View File

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