Commit f9ebd182 authored by Scott Wheeler's avatar Scott Wheeler

Added the ability to remove things from the playlist.

svn path=/trunk/kdemultimedia/juk/; revision=149572
parent 634e518d
...@@ -88,6 +88,7 @@ void FileList::remove(QPtrList<QListViewItem> *items) ...@@ -88,6 +88,7 @@ void FileList::remove(QPtrList<QListViewItem> *items)
{ {
QPtrListIterator<QListViewItem> it(*items); QPtrListIterator<QListViewItem> it(*items);
while(it.current()) { while(it.current()) {
members.remove(static_cast<FileListItem *>(it.current())->absFilePath());
delete(it.current()); delete(it.current());
++it; ++it;
} }
......
...@@ -217,7 +217,7 @@ void JuK::addToPlaylist() ...@@ -217,7 +217,7 @@ void JuK::addToPlaylist()
void JuK::removeFromPlaylist() void JuK::removeFromPlaylist()
{ {
playlist->remove(playlist->getSelectedItems());
} }
void JuK::playFile() void JuK::playFile()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment