Commit 0444f81a authored by Erwan Tulou's avatar Erwan Tulou Committed by Jean-Baptiste Kempf

corrects drag&drop for skins on Linux (mrl wrongly interpreted)

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 66f8f41b
......@@ -186,10 +186,9 @@ void X11DragDrop::dndDrop( ldata_t data )
selection = selection.substr( 0, end - 1 );
// Find the protocol, if any
string::size_type pos = selection.find( ":", 0 );
if( selection.find( "///", pos + 1 ) == pos + 1 )
if( selection.find( "file://", 0 ) == 0 )
{
selection.erase( pos + 1, 2 );
selection.erase( 0, 7 );
}
char *psz_fileName = new char[selection.size() + 1];
......
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