]> git.sesse.net Git - vlc/commitdiff
Qt: fix opening of VIDEO_TS folders from main menu
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 16 Jul 2009 16:10:49 +0000 (18:10 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 16 Jul 2009 16:11:58 +0000 (18:11 +0200)
modules/gui/qt4/dialogs_provider.cpp

index c2f7f836f958e51df93656cf3e11ced270764b68..dfec2ece88a99de33322a973b8b72171e087cbc1 100644 (file)
@@ -481,8 +481,9 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
 
     if (!dir.isEmpty() )
     {
-        QString mrl = dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) ?
-            "dvd://" : "directory://" + toNativeSeparators( dir );
+        QString mrl = (dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) ?
+                       "dvd://" : "directory://")
+                    + toNativeSeparators( dir );
         input_item_t *p_input = input_item_New( THEPL, qtu( mrl ), NULL );
 
         /* FIXME: playlist_AddInput() can fail */