Commit 10f045d3 authored by Jakob Leben's avatar Jakob Leben

Qt playlist: mistaken currentItem logic

parent c8d328e8
......@@ -718,9 +718,8 @@ void PLModel::removeItem( PLItem *item )
void PLModel::updateChildren( PLItem *root )
{
playlist_item_t *p_node = playlist_ItemGetById( p_playlist, root->i_id );
PLItem *oldCurrent = currentItem;
currentItem = NULL;
updateChildren( p_node, root );
if( currentItem != oldCurrent );
emit currentChanged( index( currentItem, 0 ) );
}
......
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