Commit 589b4ce3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix opening of VIDEO_TS folders from main menu

(cherry picked from commit 8bcb2f3c)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2c74bfc0
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment