Fix mime_info_cache_dir_add_desktop_entries

This function tried to avoid adding duplicate entries, but failed
due to using the wrong search function. See bug 595972.
This commit is contained in:
Matthias Clasen 2009-09-29 20:52:26 -04:00
parent 2f93bea177
commit 6555e0171d

View File

@ -2356,7 +2356,7 @@ mime_info_cache_dir_add_desktop_entries (MimeInfoCacheDir *dir,
for (i = 0; new_desktop_file_ids[i] != NULL; i++)
{
if (!g_list_find (desktop_file_ids, new_desktop_file_ids[i]))
if (!g_list_find_custom (desktop_file_ids, new_desktop_file_ids[i], strcmp))
desktop_file_ids = g_list_append (desktop_file_ids,
g_strdup (new_desktop_file_ids[i]));
}