1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Linux drag-and-drop fix.

This commit is contained in:
jules 2012-10-20 15:12:48 +01:00
parent 6d15cc2948
commit d94a1afcdc

View file

@ -2516,7 +2516,7 @@ private:
if (Atoms::isMimeTypeFile (dragAndDropCurrentMimeType))
{
for (int i = 0; i < lines.size(); ++i)
dragInfo.files.add (URL::removeEscapeChars (lines[i].fromFirstOccurrenceOf ("file://", false, true)));
dragInfo.files.add (URL::removeEscapeChars (lines[i].replace ("file://", String::empty, true)));
dragInfo.files.trim();
dragInfo.files.removeEmptyStrings();