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 40b8513..d45ef23 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 ),