Commit 8ab50103 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, small code simplification

parent e5ebfa67
...@@ -87,7 +87,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par ) ...@@ -87,7 +87,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
/* Initialisation of the playlist */ /* Initialisation of the playlist */
playlist_t * p_playlist = THEPL; playlist_t * p_playlist = THEPL;
PL_LOCK; PL_LOCK;
playlist_item_t *p_root = THEPL->p_playing; playlist_item_t *p_root = p_playlist->p_playing;
PL_UNLOCK; PL_UNLOCK;
setMinimumWidth( 400 ); setMinimumWidth( 400 );
...@@ -148,7 +148,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par ) ...@@ -148,7 +148,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
mainView, setRoot( playlist_item_t * ) ); mainView, setRoot( playlist_item_t * ) );
mainView->setRoot( p_root ); mainView->setRoot( p_root );
/* */
split = new PlaylistSplitter( this ); split = new PlaylistSplitter( this );
/* Add the two sides of the QSplitter */ /* Add the two sides of the QSplitter */
......
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