Mercurial > pidgin.yaz
diff pidgin/plugins/vvconfig.c @ 31524:25bbabd11c91
vvconfig: Stop resetting device selections to defaults. Fixes #13044.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | jakub.adam@ktknet.cz |
---|---|
date | Tue, 28 Dec 2010 11:09:22 +0000 |
parents | d0965a30216a |
children | a8cc50c2279f |
line wrap: on
line diff
--- a/pidgin/plugins/vvconfig.c Tue Dec 28 11:03:37 2010 +0000 +++ b/pidgin/plugins/vvconfig.c Tue Dec 28 11:09:22 2010 +0000 @@ -273,7 +273,8 @@ /* Setup device preference */ devices = get_element_devices(purple_prefs_get_string(plugin_pref)); - if (g_list_find(devices, purple_prefs_get_string(device_pref)) == NULL) + if (g_list_find_custom(devices, purple_prefs_get_string(device_pref), + (GCompareFunc) strcmp) == NULL) purple_prefs_set_string(device_pref, g_list_next(devices)->data); widget = pidgin_prefs_dropdown_from_list(vbox, device_label, PURPLE_PREF_STRING, device_pref, devices);