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