]> git.sesse.net Git - vlc/commitdiff
Win32: fix DIR_SEP failed assertion introduced in 96998812a21d05d8711db846e37df91cebc...
authorGeoffroy Couprie <geal@videolan.org>
Sun, 6 Sep 2009 17:34:33 +0000 (19:34 +0200)
committerGeoffroy Couprie <geal@videolan.org>
Sun, 6 Sep 2009 17:36:04 +0000 (19:36 +0200)
modules/gui/qt4/dialogs_provider.cpp

index 40b8513669a5258d399384c2b68c171f32eca5c4..d45ef232b0de07f3c024509ad8a99c4a61e23488 100644 (file)
@@ -418,7 +418,7 @@ void DialogsProvider::addFromSimple( bool pl, bool go)
     files.sort();
     foreach( const QString &file, files )
     {
-        char* psz_uri = make_URI( qtu( file ) );
+        char* psz_uri = make_URI( qtu( toNativeSeparators(file) ) );
         playlist_Add( THEPL, psz_uri, NULL,
                       go ? ( PLAYLIST_APPEND | ( i ? PLAYLIST_PREPARSE : PLAYLIST_GO ) )
                          : ( PLAYLIST_APPEND | PLAYLIST_PREPARSE ),