[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:19:21 CEST 2009
vlc | branch: 1.0-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jul 16 18:10:49 2009 +0200| [589b4ce3eaa8cb2f23712589ef110e68db1beee8] | committer: Jean-Baptiste Kempf
Qt: fix opening of VIDEO_TS folders from main menu
(cherry picked from commit 8bcb2f3cdc5d123b19ca662178abee322ea175f9)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=589b4ce3eaa8cb2f23712589ef110e68db1beee8
---
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 f624f14..d9fb6ae 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