Mercurial > audlegacy
comparison audacious/mainwin.c @ 358:70075730e187 trunk
[svn] Checking path for NULL wont work in the for() loop, so we have to check elsewhere.
It'd be nice if file managers would all obey the same standard.
author | nenolod |
---|---|
date | Fri, 30 Dec 2005 14:17:35 -0800 |
parents | ac6389064cf9 |
children | 2454f2ab6770 |
comparison
equal
deleted
inserted
replaced
357:115d00db8fb3 | 358:70075730e187 |
---|---|
1819 return; | 1819 return; |
1820 } | 1820 } |
1821 | 1821 |
1822 iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1); | 1822 iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1); |
1823 | 1823 |
1824 for (path = *sourcelist; path, *path; path = *(++sourcelist)) | 1824 for (path = *sourcelist; *path; path = *(++sourcelist)) |
1825 { | 1825 { |
1826 if (str_has_prefix_nocase(path, "fonts:///")) | 1826 if (str_has_prefix_nocase(path, "fonts:///")) |
1827 { | 1827 { |
1828 path += 8; | 1828 path += 8; |
1829 | 1829 |
1850 playlist_clear(); | 1850 playlist_clear(); |
1851 not_font = TRUE; | 1851 not_font = TRUE; |
1852 } | 1852 } |
1853 playlist_add_url(path); | 1853 playlist_add_url(path); |
1854 } | 1854 } |
1855 | |
1856 if (path == NULL) /* damn konqueror */ | |
1857 break; | |
1855 } | 1858 } |
1856 | 1859 |
1857 g_strfreev(iter); | 1860 g_strfreev(iter); |
1858 | 1861 |
1859 if (not_font) | 1862 if (not_font) |