We know that we open a directory
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 15 Dec 2007 23:33:14 +0000 (23:33 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 15 Dec 2007 23:33:14 +0000 (23:33 +0000)
modules/gui/qt4/dialogs_provider.cpp

index 7d42561..326ea1d 100644 (file)
@@ -326,10 +326,11 @@ void DialogsProvider::simpleMLAppendDialog()
  **/
 static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
 {
-    QString dir = QFileDialog::getExistingDirectory( 0, qtr("Open directory") );
+    QString dir = QFileDialog::getExistingDirectory( 0, qtr(I_OP_OPDIR) );
     if (!dir.isEmpty()) {
-        input_item_t *p_input = input_ItemNewExt( THEPL, qtu(dir), NULL,
-                                               0, NULL, -1 );
+        input_item_t *p_input = input_ItemNewExt( THEPL,
+                                        qtu( "directory://" + dir ), NULL,
+                                        0, NULL, -1 );
 
         playlist_AddInput( THEPL, p_input,
                        go ? ( PLAYLIST_APPEND | PLAYLIST_GO ) : PLAYLIST_APPEND,