[vlc-devel] commit: corrects drag&drop for skins on Linux (mrl wrongly interpreted) ( Erwan Tulou )

git version control git at videolan.org
Tue Mar 3 09:17:16 CET 2009


vlc | branch: master | Erwan Tulou <brezhoneg1 at yahoo.fr> | Thu Feb 26 11:23:56 2009 +0100| [0444f81a364f873a9da0ca6944250404f15d26f1] | committer: Jean-Baptiste Kempf 

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

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0444f81a364f873a9da0ca6944250404f15d26f1
---

 modules/gui/skins2/x11/x11_dragdrop.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/skins2/x11/x11_dragdrop.cpp b/modules/gui/skins2/x11/x11_dragdrop.cpp
index ce4c536..fd77b6c 100644
--- a/modules/gui/skins2/x11/x11_dragdrop.cpp
+++ b/modules/gui/skins2/x11/x11_dragdrop.cpp
@@ -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];




More information about the vlc-devel mailing list