Commit 9ed55482 authored by Scott Wheeler's avatar Scott Wheeler

Don't save the dynamic playlists.

svn path=/trunk/kdemultimedia/juk/; revision=231296
parent 575e1b6d
......@@ -146,11 +146,12 @@ PlaylistList PlaylistBox::playlists()
{
PlaylistList l;
for(QListViewItemIterator it(this); it.current(); ++it) {
Item *i = static_cast<Item *>(*it);
if(i->playlist() && i->playlist() != CollectionList::instance())
CollectionList *collection = CollectionList::instance();
Item *i = static_cast<Item *>(firstChild());
for(; i; i = static_cast<Item *>(i->itemBelow()))
if(i->playlist() && i->playlist() != collection)
l.append(i->playlist());
}
return l;
}
......
......@@ -51,6 +51,11 @@ public:
void raise(Playlist *playlist);
QStringList names() const { return m_names; }
/**
* A list of all of the playlists in the PlaylistBox, not counting dynamic
* playlists.
*/
PlaylistList playlists();
// All of the methods use the selected item.
......
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