From 2e1619c2fbebd91e996c6d7e5ee776e80f22cbaf Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 17 Oct 2008 19:49:17 +0200 Subject: [PATCH] [Qt] When opening a VIDEO_TS folder, use dvd:// and not directory:// This should close #2167. But must be checked for extra "/" on windows. --- modules/gui/qt4/dialogs_provider.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp index 5a6fef4692..27dcf6e63b 100644 --- a/modules/gui/qt4/dialogs_provider.cpp +++ b/modules/gui/qt4/dialogs_provider.cpp @@ -420,8 +420,11 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go ) if (!dir.isEmpty() ) { - input_item_t *p_input = input_item_NewExt( THEPL, - qtu( "directory://" + toNativeSeparators(dir) ), + msg_Dbg( p_intf, "Directory opening: %s", qtu( dir ) ); + input_item_t *p_input = input_item_NewExt( THEPL, qtu( + dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) ? "dvd://" + :"directory://" + + toNativeSeparators(dir) ), NULL, 0, NULL, -1 ); /* FIXME: playlist_AddInput() can fail */