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