handle the case where @book == NULL, which can happen if there was a

2003-05-19  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/e-destination.c (use_default_book_cb): handle the
	case where @book == NULL, which can happen if there was a problem
	opening the default book.  Should fix #43005.

svn path=/trunk/; revision=21269
This commit is contained in:
Chris Toshok
2003-05-19 20:26:34 +00:00
committed by Chris Toshok
parent f68ef51327
commit 6052618948
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-05-19 Chris Toshok <toshok@ximian.com>
* backend/ebook/e-destination.c (use_default_book_cb): handle the
case where @book == NULL, which can happen if there was a problem
opening the default book. Should fix #43005.
2003-05-19 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook-component.c

View File

@ -1039,12 +1039,15 @@ static void
use_default_book_cb (EBook *book, gpointer closure)
{
EDestination *dest = E_DESTINATION (closure);
if (dest->priv->cardify_book == NULL) {
if (book != NULL && dest->priv->cardify_book == NULL) {
dest->priv->cardify_book = book;
g_object_ref (book);
}
launch_cardify_query (dest);
if (dest->priv->cardify_book)
launch_cardify_query (dest);
else
g_object_unref (dest);
}