Commit 50563b1b authored by Ilkka Ollakka's avatar Ilkka Ollakka

qt4: lock playlist littlebit later

parent c55d4df4
...@@ -943,10 +943,10 @@ void PLModel::search( const QString& search_text ) ...@@ -943,10 +943,10 @@ void PLModel::search( const QString& search_text )
/*********** Popup *********/ /*********** Popup *********/
void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list ) void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
{ {
PL_LOCK;
int i_id; int i_id;
if( index.isValid() ) i_id = itemId( index ); if( index.isValid() ) i_id = itemId( index );
else i_id = rootItem->i_id; else i_id = rootItem->i_id;
PL_LOCK;
playlist_item_t *p_item = playlist_ItemGetById( p_playlist, i_id ); playlist_item_t *p_item = playlist_ItemGetById( p_playlist, i_id );
if( p_item ) if( p_item )
{ {
......
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