p_parent = p_parent->p_parent;
}
if( p_parent )
- playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true,
+ playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, pl_Locked,
p_parent, p_item );
}
if( i_input_id <= 0 ) return;
PLItem *item = FindByInput( rootItem, i_input_id );
if( item )
+ {
+ QPL_LOCK;
UpdateTreeItem( item, true );
+ QPL_UNLOCK;
+ }
}
void PLModel::ProcessItemRemoval( int i_id )
int i_index = -1;
int i_flag = 0;
+ // FIXME: Disable sorting on startup by ignoring
+ // first call of sorting caused by showing dialog
+ // see: standardpanel.cpp:65
+ static bool b_first_time = true;
+ if( b_first_time )
+ {
+ b_first_time = false;
+ return;
+ }
+
#define CHECK_COLUMN( meta ) \
{ \
if( ( shownFlags() & meta ) ) \
void PLModel::viewchanged( int meta )
{
assert( meta );
+ int _meta = meta;
if( rootItem )
{
int index=-1;
- while( meta )
+ while( _meta )
{
index++;
- meta >>= 1;
+ _meta >>= 1;
}
/* UNUSED emit layoutAboutToBeChanged(); */
{
playlist_item_t *p_item = playlist_ItemGetById( p_playlist,
i_popup_item,
- true );
+ false );
if( p_item )
{
MediaInfoDialog *mid = new MediaInfoDialog( p_intf, p_item->p_input );