Commit 1cda188d authored by Scott Wheeler's avatar Scott Wheeler

Make the history go away when you tell it to.

svn path=/trunk/kdemultimedia/juk/; revision=242604
parent 35acd6f1
......@@ -331,7 +331,10 @@ void PlaylistBox::deleteItems(const ItemList &items, bool confirm)
QValueList< QPair<Item *, Playlist *> > removeQueue;
for(ItemList::ConstIterator it = items.begin(); it != items.end(); ++it) {
if(*it != Item::collectionItem() && (*it)->playlist() && !(*it)->playlist()->readOnly()) {
if(*it != Item::collectionItem() &&
(*it)->playlist() &&
(!confirm || !(*it)->playlist()->readOnly()))
{
m_names.remove((*it)->text(0));
m_playlistDict.remove((*it)->playlist());
removeQueue.append(qMakePair(*it, (*it)->playlist()));
......
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