Commit 8bd54617 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Qt4: use vlc_list_children

parent 73edaec8
...@@ -199,7 +199,6 @@ void MessagesDialog::updateLog() ...@@ -199,7 +199,6 @@ void MessagesDialog::updateLog()
void MessagesDialog::buildTree( QTreeWidgetItem *parentItem, void MessagesDialog::buildTree( QTreeWidgetItem *parentItem,
vlc_object_t *p_obj ) vlc_object_t *p_obj )
{ {
vlc_object_yield( p_obj );
QTreeWidgetItem *item; QTreeWidgetItem *item;
if( parentItem ) if( parentItem )
...@@ -217,12 +216,11 @@ void MessagesDialog::buildTree( QTreeWidgetItem *parentItem, ...@@ -217,12 +216,11 @@ void MessagesDialog::buildTree( QTreeWidgetItem *parentItem,
item->setExpanded( true ); item->setExpanded( true );
for( int i=0; i < p_obj->i_children; i++ ) vlc_list_t *l = vlc_list_children( p_obj );
{
buildTree( item, p_obj->pp_children[i]);
}
vlc_object_release( p_obj ); vlc_object_release( p_obj );
for( int i=0; i < l->i_count; i++ )
buildTree( item, l->p_values[i].p_object );
} }
void MessagesDialog::clearOrUpdate() void MessagesDialog::clearOrUpdate()
...@@ -237,6 +235,7 @@ void MessagesDialog::updateTree() ...@@ -237,6 +235,7 @@ void MessagesDialog::updateTree()
{ {
modulesTree->clear(); modulesTree->clear();
vlc_object_yield( p_intf->p_libvlc );
buildTree( NULL, VLC_OBJECT( p_intf->p_libvlc ) ); buildTree( NULL, VLC_OBJECT( p_intf->p_libvlc ) );
} }
......
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