mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Unregister updater from playlist on deletion
This commit is contained in:
@@ -70,6 +70,13 @@ PlaylistUpdaterInterface::PlaylistUpdaterInterface( const playlist_ptr& pl )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PlaylistUpdaterInterface::~PlaylistUpdaterInterface()
|
||||||
|
{
|
||||||
|
if ( !m_playlist.isNull() )
|
||||||
|
m_playlist->removeUpdater( this );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
PlaylistUpdaterInterface::save()
|
PlaylistUpdaterInterface::save()
|
||||||
{
|
{
|
||||||
|
@@ -56,7 +56,7 @@ public:
|
|||||||
|
|
||||||
explicit PlaylistUpdaterInterface( const playlist_ptr& pl );
|
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.
|
// What type you are. If you add a new updater, add the creation code as well.
|
||||||
virtual QString type() const = 0;
|
virtual QString type() const = 0;
|
||||||
|
Reference in New Issue
Block a user