Commit b6cb206a authored by Frerich Raabe's avatar Frerich Raabe

- Simplified control flow in CollectionList

- Indentation fix in PlaylistSplitter

svn path=/trunk/kdemultimedia/juk/; revision=218575
parent 49947d50
......@@ -183,8 +183,6 @@ void CollectionList::slotRefreshItem(const QString &file)
void CollectionList::slotCreateGroup()
{
PlaylistItemList items = selectedItems();
if(items.isEmpty())
return;
QValueList<QFileInfo> fileInfos;
for(PlaylistItem *item = items.first(); item != 0; item = items.next())
fileInfos << *item->data()->fileInfo();
......
......@@ -573,7 +573,7 @@ void PlaylistSplitter::slotCreatePlaylist(const QValueList<QFileInfo> &fileInfos
{
Playlist *playlist = slotCreatePlaylist();
if(!playlist)
return;
return;
QValueList<QFileInfo>::ConstIterator it = fileInfos.begin();
QValueList<QFileInfo>::ConstIterator end = fileInfos.end();
......
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