mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 16:29:43 +01:00
Unregister updater from playlist on deletion
This commit is contained in:
parent
8392251280
commit
029dd935c9
@ -70,6 +70,13 @@ PlaylistUpdaterInterface::PlaylistUpdaterInterface( const playlist_ptr& pl )
|
||||
}
|
||||
|
||||
|
||||
PlaylistUpdaterInterface::~PlaylistUpdaterInterface()
|
||||
{
|
||||
if ( !m_playlist.isNull() )
|
||||
m_playlist->removeUpdater( this );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PlaylistUpdaterInterface::save()
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
|
||||
explicit PlaylistUpdaterInterface( const playlist_ptr& pl );
|
||||
|
||||
virtual ~PlaylistUpdaterInterface(){}
|
||||
virtual ~PlaylistUpdaterInterface();
|
||||
|
||||
// What type you are. If you add a new updater, add the creation code as well.
|
||||
virtual QString type() const = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user