ADD_ICON( NODE, ":/type/node" );
#undef ADD_ICON
+ addCallbacks();
rebuild( p_root, true );
CONNECT( THEMIM->getIM(), metaChanged( input_item_t *),
this, processInputItemUpdate( input_item_t *) );
void PLModel::rebuild( playlist_item_t *p_root, bool b_first )
{
playlist_item_t* p_item;
- /* Remove callbacks before locking to avoid deadlocks
- The first time the callbacks are not present so
- don't try to delete them */
- if( !b_first )
- delCallbacks();
/* Invalidate cache */
i_cached_id = i_cached_input_id = -1;
reset();
emit currentChanged( index( currentItem, 0 ) );
-
- addCallbacks();
}
void PLModel::takeItem( PLItem *item )