Commit 4eed3209 authored by Clément Stenac's avatar Clément Stenac

Naive implementation of deletion : full rebuild after deletion, and refocus on current playing item

parent b4ab33fd
...@@ -58,7 +58,7 @@ Playtree::~Playtree() ...@@ -58,7 +58,7 @@ Playtree::~Playtree()
void Playtree::delSelected() void Playtree::delSelected()
{ {
Iterator it; Iterator it;
for (it = begin(); it != end() ; it++ ) for (it = begin(); it != end() ; it = getNextVisibleItem( it ) )
{ {
if( (*it).m_selected ) if( (*it).m_selected )
{ {
...@@ -77,6 +77,7 @@ void Playtree::delSelected() ...@@ -77,6 +77,7 @@ void Playtree::delSelected()
} }
} }
} }
buildTree();
notify(); notify();
} }
......
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