]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs_provider.cpp
Do not read directory twice. This solves #1761 but this may not be the real solution...
[vlc] / modules / gui / qt4 / dialogs_provider.cpp
index 19eeeff57f46d07c33a277f0ef3ccda352345d50..cf4207e0bf6294b5a81401d57cfe40d191c802b3 100644 (file)
@@ -422,11 +422,17 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
         playlist_AddInput( THEPL, p_input,
                        go ? ( PLAYLIST_APPEND | PLAYLIST_GO ) : PLAYLIST_APPEND,
                        PLAYLIST_END, pl, pl_Unlocked );
-        input_Read( THEPL, p_input, false );
+        if( !go )
+            input_Read( THEPL, p_input, false );
         vlc_gc_decref( p_input );
     }
 }
 
+void DialogsProvider::PLOpenDir()
+{
+    openDirectory( p_intf, true, true );
+}
+
 void DialogsProvider::PLAppendDir()
 {
     openDirectory( p_intf, true, false );