diff src/audacious/vfs.c @ 2575:9713b5a67cba trunk

[svn] - make directory drag-and-drop work again.
author nenolod
date Sun, 25 Feb 2007 17:55:30 -0800
parents 07b990906823
children 364714f2d555
line wrap: on
line diff
--- a/src/audacious/vfs.c	Sun Feb 25 00:53:19 2007 -0800
+++ b/src/audacious/vfs.c	Sun Feb 25 17:55:30 2007 -0800
@@ -334,7 +334,19 @@
 gboolean
 vfs_file_test(const gchar * path, GFileTest test)
 {
-    return g_file_test(path, test);
+    gchar *path2;
+    gboolean ret;
+
+    if (strlen(path) > 5)
+        path2 = xmms_urldecode_plain(path + 5); /* skip file: */
+    else
+        path2 = g_strdup(path);
+
+    ret = g_file_test(path2, test);
+
+    g_free(path2);
+
+    return ret;
 }
 
 /**