Mercurial > audlegacy
changeset 289:8eab873f20a8 trunk
[svn] possible DND fix for konqueror. (cleaned up version of fixed version of my cleanups...
i will NOT code at 3 AM again.).
author | nenolod |
---|---|
date | Wed, 14 Dec 2005 11:36:27 -0800 |
parents | 1e2bd3df8981 |
children | 5ca6e39394b5 |
files | audacious/mainwin.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/audacious/mainwin.c Wed Dec 14 11:21:10 2005 -0800 +++ b/audacious/mainwin.c Wed Dec 14 11:36:27 2005 -0800 @@ -1816,7 +1816,7 @@ guint time, gpointer user_data) { - gchar **sourcelist, *path; + gchar **iter, **sourcelist, *path; gchar *decoded; gboolean not_font = FALSE; @@ -1826,9 +1826,9 @@ return; } - sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1); - - for (path = *sourcelist; *path; path = *(++sourcelist)) + iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1); + + for (path = *sourcelist; path, *path; path = *(++sourcelist)) { if (str_has_prefix_nocase(path, "fonts:///")) { @@ -1859,10 +1859,9 @@ } playlist_add_url(path); } - } - g_strfreev(sourcelist); + g_strfreev(iter); if (not_font) bmp_playback_initiate();