[vlc-devel] commit: Revert 4ce6c3f34b0807c7ee8db8739bdbdb9773d42f56. Fixes drag and drop on my system. Adding quotes to a filename in C/C++ isn 't going to change anything ( it would on a command line given the way getopt works). Tested with a file named "/home/dionoea/media/test test/redefined :ni= ntendo.mpg". (Antoine Cellerier )
git version control
git at videolan.org
Wed Apr 2 23:14:03 CEST 2008
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Wed Apr 2 22:10:18 2008 +0200| [a4a4609ad5b2d7084045545a12008ab36b225850]
Revert 4ce6c3f34b0807c7ee8db8739bdbdb9773d42f56. Fixes drag and drop on my system. Adding quotes to a filename in C/C++ isn't going to change anything (it would on a command line given the way getopt works). Tested with a file named "/home/dionoea/media/test test/redefined :ni=ntendo.mpg".
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a4a4609ad5b2d7084045545a12008ab36b225850
---
modules/gui/qt4/main_interface.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 6290c1f..6d773ab 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -1095,7 +1095,7 @@ void MainInterface::dropEvent(QDropEvent *event)
bool first = true;
foreach( QUrl url, mimeData->urls() )
{
- QString s = "\"" + url.toString() + "\"";
+ QString s = url.toString();
if( s.length() > 0 ) {
playlist_Add( THEPL, qtu(s), NULL,
PLAYLIST_APPEND | (first ? PLAYLIST_GO:0),
More information about the vlc-devel
mailing list