qt4: open file requester when the playlist is empty, but media library or services...
authorRafaël Carré <funman@videolan.org>
Wed, 17 Oct 2007 22:42:39 +0000 (22:42 +0000)
committerRafaël Carré <funman@videolan.org>
Wed, 17 Oct 2007 22:42:39 +0000 (22:42 +0000)
modules/gui/qt4/components/interface_widgets.cpp

index 981e10e..4fe8de6 100644 (file)
@@ -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();