Commit 4dab3324 authored by Frerich Raabe's avatar Frerich Raabe

- Fixed redrawing the main view when removing the last playlist in the list -

  one cannot use lastItem() there since the item was not delete yet. Instead,
  use itemAbove().

svn path=/trunk/kdemultimedia/juk/; revision=234936
parent c89180ee
...@@ -297,7 +297,7 @@ void PlaylistBox::deleteItem(Item *item) ...@@ -297,7 +297,7 @@ void PlaylistBox::deleteItem(Item *item)
m_names.remove(item->text(0)); m_names.remove(item->text(0));
m_playlistDict.remove(item->playlist()); m_playlistDict.remove(item->playlist());
setSingleItem(item->nextSibling() ? item->nextSibling() : lastItem()); setSingleItem(item->nextSibling() ? item->nextSibling() : item->itemAbove());
delete item->playlist(); delete item->playlist();
delete item; delete 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