[PATCH] corrects drag&drop for skins on Linux (mrl wrongly =

Erwan Tulou brezhoneg1 at yahoo.fr
Thu Feb 26 11:23:56 CET 2009


interpreted)=0A=
=0A=
---=0A=
 modules/gui/skins2/x11/x11_dragdrop.cpp |    5 ++---=0A=
 1 files changed, 2 insertions(+), 3 deletions(-)=0A=
=0A=
diff --git a/modules/gui/skins2/x11/x11_dragdrop.cpp =
b/modules/gui/skins2/x11/x11_dragdrop.cpp=0A=
index ce4c536..fd77b6c 100644=0A=
--- a/modules/gui/skins2/x11/x11_dragdrop.cpp=0A=
+++ b/modules/gui/skins2/x11/x11_dragdrop.cpp=0A=
@@ -186,10 +186,9 @@ void X11DragDrop::dndDrop( ldata_t data )=0A=
         selection =3D selection.substr( 0, end - 1 );=0A=
 =0A=
         // Find the protocol, if any=0A=
-        string::size_type pos =3D selection.find( ":", 0 );=0A=
-        if( selection.find( "///", pos + 1 ) =3D=3D pos + 1 )=0A=
+        if( selection.find( "file://", 0 ) =3D=3D 0 )=0A=
         {=0A=
-            selection.erase( pos + 1, 2 );=0A=
+            selection.erase( 0, 7 );=0A=
         }=0A=
 =0A=
         char *psz_fileName =3D new char[selection.size() + 1];=0A=
-- =0A=
1.5.2.5=0A=
=0A=

------=_NextPart_000_0001_01C99B5E.D3E633C0
Content-Type: application/octet-stream;
	name="0002-Dialogs-destroy-move-from-the-Close-function-becaus.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="0002-Dialogs-destroy-move-from-the-Close-function-becaus.patch"



More information about the vlc-devel mailing list