Commit 49947d50 authored by Scott Wheeler's avatar Scott Wheeler
Browse files

Check to make sure that a playlist was created before putting files

into it.

svn path=/trunk/kdemultimedia/juk/; revision=218490
parent ff5a8a0f
......@@ -182,8 +182,10 @@ void CollectionList::slotRefreshItem(const QString &file)
void CollectionList::slotCreateGroup()
QValueList<QFileInfo> fileInfos;
PlaylistItemList items = selectedItems();
QValueList<QFileInfo> fileInfos;
for(PlaylistItem *item = items.first(); item != 0; item =
fileInfos << *item->data()->fileInfo();
emit signalRequestPlaylistCreation(fileInfos);
......@@ -572,6 +572,9 @@ void PlaylistSplitter::slotPlaylistItemRemoved(PlaylistItem *item)
void PlaylistSplitter::slotCreatePlaylist(const QValueList<QFileInfo> &fileInfos)
Playlist *playlist = slotCreatePlaylist();
QValueList<QFileInfo>::ConstIterator it = fileInfos.begin();
QValueList<QFileInfo>::ConstIterator end = fileInfos.end();
for(; it != end; ++it)
Supports Markdown
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