Commit c1b51651 authored by Pierre Lamot's avatar Pierre Lamot Committed by Hugo Beauzée-Luyssen

Qt: fix subtitle path separator in open panel on windows

"sub-file" path expects native separator and not slashes.

Closes #19976
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 67ebc093)
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 1713b202
...@@ -287,7 +287,7 @@ void FileOpenPanel::updateMRL() ...@@ -287,7 +287,7 @@ void FileOpenPanel::updateMRL()
/* Options */ /* Options */
if( ui.subGroupBox->isChecked() && !subUrl.isEmpty() ) { if( ui.subGroupBox->isChecked() && !subUrl.isEmpty() ) {
mrl.append( " :sub-file=" + colon_escape( subUrl.toLocalFile() ) ); mrl.append( " :sub-file=" + colon_escape( toNativeSeparators( subUrl.toLocalFile() ) ) );
} }
emit methodChanged( "file-caching" ); emit methodChanged( "file-caching" );
......
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