From 0235770b09df4e25b32478bc8952f850c61115ac Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Sat, 5 Mar 2005 08:40:50 +0000 Subject: Make sure LoadSourceData has call back installed before calling it. cb is 2005-03-03 Sivaiah Nallagatla * gui/component/addressbook.c (load_source_auth_cb): Make sure LoadSourceData has call back installed before calling it. cb is NULL when called from auth_required_cb Fixes #73206 svn path=/trunk/; revision=28968 --- addressbook/gui/component/addressbook.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 699a44ba06..4e5ad6ac8e 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -98,7 +98,8 @@ load_source_auth_cb (EBook *book, EBookStatus status, gpointer closure) _("Accessing LDAP Server anonymously")); g_signal_connect (dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL); gtk_widget_show (dialog); - data->cb (book, E_BOOK_ERROR_OK, data->closure); + if (data->cb) + data->cb (book, E_BOOK_ERROR_OK, data->closure); free_load_source_data (data); return; } -- cgit