mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
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:
parent
2f93bea177
commit
6555e0171d
@ -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]));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user