[vlc-devel] commit: Qt: fix opening of VIDEO_TS folders from main menu ( Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Jul 16 18:12:13 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jul 16 18:10:49 2009 +0200| [8bcb2f3cdc5d123b19ca662178abee322ea175f9] | committer: Jean-Baptiste Kempf 

Qt: fix opening of VIDEO_TS folders from main menu

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8bcb2f3cdc5d123b19ca662178abee322ea175f9
---

 modules/gui/qt4/dialogs_provider.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index c2f7f83..dfec2ec 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -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 */




More information about the vlc-devel mailing list