mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-20 07:52:30 +02:00
* Playlist's aboutToBeDeleted is a signal.
This commit is contained in:
parent
dfcdc09cee
commit
216d440206
@ -184,10 +184,9 @@ Playlist::get( const QString& guid )
|
||||
void
|
||||
Playlist::remove( const playlist_ptr& playlist )
|
||||
{
|
||||
playlist->aboutToBeDeleted( playlist );
|
||||
emit playlist->aboutToBeDeleted( playlist );
|
||||
|
||||
TomahawkSettings *s = TomahawkSettings::instance();
|
||||
s->removePlaylistSettings( playlist->guid() );
|
||||
TomahawkSettings::instance()->removePlaylistSettings( playlist->guid() );
|
||||
|
||||
DatabaseCommand_DeletePlaylist* cmd = new DatabaseCommand_DeletePlaylist( playlist->author(), playlist->guid() );
|
||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user