From 845369568d2f9af34a1a6e7e4ba08b0f0cd6964d Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sat, 10 Nov 2001 00:48:43 +0000 Subject: [ Fixes Ximian bug #14646 ] new function. if the default_book failed to 2001-11-09 Chris Toshok [ Fixes Ximian bug #14646 ] * gui/component/addressbook.c (addressbook_default_book_open): new function. if the default_book failed to load, load the local addressbook in its place. addressbook_load_default_book): if we're loading the default_book uri, use addressbook_default_book_open as the open_response. * backend/ebook/e-book.c (e_book_load_uri_step): reset the load_state to NotLoaded so we can attempt another load_uri on the book if it fails. svn path=/trunk/; revision=14654 --- addressbook/backend/ebook/e-book.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/backend') diff --git a/addressbook/backend/ebook/e-book.c b/addressbook/backend/ebook/e-book.c index e331df149e..c260f3402a 100644 --- a/addressbook/backend/ebook/e-book.c +++ b/addressbook/backend/ebook/e-book.c @@ -555,6 +555,10 @@ e_book_load_uri_step (EBook *book, EBookStatus status, EBookLoadURIData *data) else { EBookCallback cb = data->open_response; gpointer closure = data->closure; + + /* reset the load_state to NotLoaded so people can + attempt another load_uri on the book. */ + book->priv->load_state = URINotLoaded; g_free (data); -- cgit v1.2.3