Commit 13b88912 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Qt: recents: hide the file:// scheme from the MRL

parent 3867805b
......@@ -1602,6 +1602,14 @@ void VLCMenuBar::updateRecents( intf_thread_t *p_intf )
QString text = qfu( psz );
text.replace("&", "&&");
#ifdef _WIN32
# define FILE_SCHEME "file:///"
#else
# define FILE_SCHEME "file://"
#endif
if ( text.startsWith( FILE_SCHEME ) )
text.remove( 0, strlen( FILE_SCHEME ) );
#undef FILE_SCHEME
free( psz );
action = recentsMenu->addAction(
......
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