Commit 4ce6c3f3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Escape files when drag'n dropped... Hopefully fix #1525.

parent bf6537c0
......@@ -1093,8 +1093,9 @@ void MainInterface::dropEvent(QDropEvent *event)
}
}
bool first = true;
foreach( QUrl url, mimeData->urls() ) {
QString s = url.toString();
foreach( QUrl url, mimeData->urls() )
{
QString s = "\"" + url.toString() + "\"";
if( s.length() > 0 ) {
playlist_Add( THEPL, qtu(s), NULL,
PLAYLIST_APPEND | (first ? PLAYLIST_GO:0),
......
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