aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-11-10 08:48:43 +0800
committerChris Toshok <toshok@src.gnome.org>2001-11-10 08:48:43 +0800
commit845369568d2f9af34a1a6e7e4ba08b0f0cd6964d (patch)
tree6d4963c8722d7d025597f1ab6a2583e92de0c929 /addressbook/backend/ebook
parentdc452a0d2339cdb9539a826bfa470ffce2d16766 (diff)
downloadgsoc2013-evolution-845369568d2f9af34a1a6e7e4ba08b0f0cd6964d.tar
gsoc2013-evolution-845369568d2f9af34a1a6e7e4ba08b0f0cd6964d.tar.gz
gsoc2013-evolution-845369568d2f9af34a1a6e7e4ba08b0f0cd6964d.tar.bz2
gsoc2013-evolution-845369568d2f9af34a1a6e7e4ba08b0f0cd6964d.tar.lz
gsoc2013-evolution-845369568d2f9af34a1a6e7e4ba08b0f0cd6964d.tar.xz
gsoc2013-evolution-845369568d2f9af34a1a6e7e4ba08b0f0cd6964d.tar.zst
gsoc2013-evolution-845369568d2f9af34a1a6e7e4ba08b0f0cd6964d.zip
[ Fixes Ximian bug #14646 ] new function. if the default_book failed to
2001-11-09 Chris Toshok <toshok@ximian.com> [ 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
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r--addressbook/backend/ebook/e-book.c4
1 files changed, 4 insertions, 0 deletions
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);