# HG changeset patch # User Kieran Clancy # Date 1189397689 -34200 # Node ID 3b26640f9fd6f6ef9483148923bbca08280ea353 # Parent 2048a7c9572f98e83ac3dcaa1c03e99d980e05c4 Don't stop playback when deleting a non-active playlist diff -r 2048a7c9572f -r 3b26640f9fd6 src/audacious/playlist.c --- a/src/audacious/playlist.c Fri Sep 07 22:26:42 2007 -0500 +++ b/src/audacious/playlist.c Mon Sep 10 13:44:49 2007 +0930 @@ -282,8 +282,10 @@ void playlist_remove_playlist(Playlist *playlist) { + gboolean active; + active = (playlist && playlist == playlist_get_active()); /* users suppose playback will be stopped on removing playlist */ - if (playback_get_playing()) { + if (active && playback_get_playing()) { ip_data.stop = TRUE; playback_stop(); ip_data.stop = FALSE; @@ -297,8 +299,7 @@ return; } - if (playlist == playlist_get_active()) - playlist_select_next(); + if (active) playlist_select_next(); /* upon removal, a playlist should be cleared and freed */ playlists = g_list_remove(playlists, playlist);