From f9ebd1822070e5af815f365e95f7d0903bcd5fae Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Mon, 15 Apr 2002 14:08:47 +0000 Subject: [PATCH] Added the ability to remove things from the playlist. svn path=/trunk/kdemultimedia/juk/; revision=149572 --- filelist.cpp | 1 + juk.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/filelist.cpp b/filelist.cpp index 172fb6d3..04497a2c 100644 --- a/filelist.cpp +++ b/filelist.cpp @@ -88,6 +88,7 @@ void FileList::remove(QPtrList *items) { QPtrListIterator it(*items); while(it.current()) { + members.remove(static_cast(it.current())->absFilePath()); delete(it.current()); ++it; } diff --git a/juk.cpp b/juk.cpp index d1f70212..f8c63151 100644 --- a/juk.cpp +++ b/juk.cpp @@ -217,7 +217,7 @@ void JuK::addToPlaylist() void JuK::removeFromPlaylist() { - + playlist->remove(playlist->getSelectedItems()); } void JuK::playFile() -- GitLab