Mercurial > pidgin
changeset 10980:842a21e7480b
[gaim-migrate @ 12810]
When no callback is specified for the action, don't try to call it.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 08 Jun 2005 06:28:47 +0000 |
parents | fa71e39f7e3a |
children | 771c510655c7 |
files | src/gtkrequest.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Tue Jun 07 02:56:34 2005 +0000 +++ b/src/gtkrequest.c Wed Jun 08 06:28:47 2005 +0000 @@ -140,7 +140,7 @@ { GtkWidget *radio = g_object_get_data(G_OBJECT(dialog), "radio"); GSList *group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(radio)); - if (id < data->cb_count) + if (id < data->cb_count && data->cbs[id] != NULL) while (group) { if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(group->data))) { ((GaimRequestChoiceCb)data->cbs[id])(data->user_data, GPOINTER_TO_INT(g_object_get_data(G_OBJECT(group->data), "choice_id")));