]> git.sesse.net Git - vlc/commitdiff
Qt: fix folder opening of DVD and BD on Windows
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 19 Jan 2014 17:59:00 +0000 (18:59 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 19 Jan 2014 17:59:57 +0000 (18:59 +0100)
Close #6328

modules/gui/qt4/dialogs_provider.cpp

index cc681601ce07dc90c7886cd039f4646dc1965113..71d511a2c0ae43f64991b656ea6edb45daa6311d 100644 (file)
@@ -504,9 +504,9 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
     p_intf->p_sys->filepath = dir;
 
     const char *scheme = "directory";
-    if( dir.endsWith( "/VIDEO_TS", Qt::CaseInsensitive ) )
+    if( dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) )
         scheme = "dvd";
-    else if( dir.endsWith( "/BDMV", Qt::CaseInsensitive ) )
+    else if( dir.endsWith( "BDMV", Qt::CaseInsensitive ) )
     {
         scheme = "bluray";
         dir.remove( "BDMV" );