Commit 67ebc093 authored by Pierre Lamot's avatar Pierre Lamot Committed by Jean-Baptiste Kempf

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>
parent 51a1cc84
......@@ -287,7 +287,7 @@ void FileOpenPanel::updateMRL()
/* Options */
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" );
......
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