Commit eda8ea10 authored by Rafaël Carré's avatar Rafaël Carré

qt4: open file requester when the playlist is empty, but media library or services discovery aren't

parent 6dc378e7
......@@ -490,9 +490,7 @@ void ControlsWidget::stop()
void ControlsWidget::play()
{
if( THEPL )
msg_Dbg( p_intf, "There is %i playlist items", THEPL->items.i_size ); /* FIXME: remove me */
if( playlist_IsEmpty( THEPL ) )
if( THEPL->current.i_size == 0 )
{
/* The playlist is empty, open a file requester */
THEDP->openFileDialog();
......
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