/* Create and configure the QTreeView */
view = new QVLCTreeView( 0 );
view->setSortingEnabled( true );
- view->sortByColumn( -1, Qt::AscendingOrder );
- view->setModel(model);
+ view->sortByColumn( 0 , Qt::AscendingOrder );
+ view->setModel( model );
view->setIconSize( QSize( 20, 20 ) );
view->setAlternatingRowColors( true );
view->setAnimated( true );
/* This activated by the selector selection */
void StandardPLPanel::setRoot( int i_root_id )
{
+ QPL_LOCK;
playlist_item_t *p_item = playlist_ItemGetById( THEPL, i_root_id,
true );
assert( p_item );
p_item = playlist_GetPreferredNode( THEPL, p_item );
assert( p_item );
+ QPL_UNLOCK;
+
model->rebuild( p_item );
}