]> git.sesse.net Git - vlc/commitdiff
* skins2: Open the file requester dialog when clicking on "play" and the
authorOlivier Teulière <ipkiss@videolan.org>
Mon, 24 May 2004 21:48:56 +0000 (21:48 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Mon, 24 May 2004 21:48:56 +0000 (21:48 +0000)
   playlist is empty

modules/gui/skins2/commands/cmd_input.cpp

index a64fba179714994927212181cfe166dc7b5cf1b6..7ea664c58499e757ce00bf9258fc932dd0c56abb 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <vlc/aout.h>
 #include "cmd_input.hpp"
+#include "cmd_dialogs.hpp"
 
 
 void CmdPlay::execute()
@@ -34,7 +35,16 @@ void CmdPlay::execute()
         return;
     }
 
-    playlist_Play( pPlaylist );
+    if( pPlaylist->i_size )
+    {
+        playlist_Play( pPlaylist );
+    }
+    else
+    {
+        // If the playlist is empty, open a file requester instead
+        CmdDlgFile cmd( getIntf() );
+        cmd.execute();
+    }
 }