summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-09 16:24:36 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-09 16:24:36 +0200
commitbbfb79b3b6d82c88417f868fc897ad7c40d8b6c3 (patch)
treef577863906a7aa8b27f37e4511e4a9e5fe5468c0 /playlist.c
parent5d3d436d2e5c825c1c39931479dd19f533573963 (diff)
fixed remove_selected
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/playlist.c b/playlist.c
index e07cfcd3..8624bfc1 100644
--- a/playlist.c
+++ b/playlist.c
@@ -898,7 +898,9 @@ ps_delete_selected (void) {
playItem_t *next = NULL;
for (playItem_t *it = playlist_head[PS_MAIN]; it; it = next) {
next = it->next[PS_MAIN];
- ps_remove (it);
+ if (it->selected) {
+ ps_remove (it);
+ }
}
}