changeset 925:25963e82c40f trunk

[svn] - konqueror hack was breaking standards here, fix a crash
author nenolod
date Wed, 12 Apr 2006 11:07:10 -0700
parents 5ef13028e42d
children 3d4af4890339
files audacious/mainwin.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/mainwin.c	Tue Apr 11 14:33:16 2006 -0700
+++ b/audacious/mainwin.c	Wed Apr 12 11:07:10 2006 -0700
@@ -1901,10 +1901,13 @@
         return;
     }
 
-    iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1);
+    iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\n",-1);
 
     for (path = *sourcelist; *path; path = *(++sourcelist))
     {
+	if (path == NULL)	/* damn konqueror */
+	    break;
+
 	if (str_has_prefix_nocase(path, "fonts:///"))
 	{
     	    path += 8;
@@ -1934,9 +1937,6 @@
 	    }	
     	    playlist_add_url(path);
 	}
-
-	if (path == NULL)	/* damn konqueror */
-	    break;
     }
     
     g_strfreev(iter);