summaryrefslogtreecommitdiff
path: root/addressbook/libebook
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-12-01 13:33:57 +0000
committerHans Petter <hansp@src.gnome.org>2003-12-01 13:33:57 +0000
commit1d616c05ab6973cf5d504c5402aca042a9ad1f47 (patch)
tree3e639e375e23cffdcfbeb755c62237fb5c92e93a /addressbook/libebook
parente56e9ff5119b830c55e0c0e3783e9512dbc48302 (diff)
downloadevolution-data-server-1d616c05ab6973cf5d504c5402aca042a9ad1f47.tar.gz
If the book failed to load, set load_state to E_BOOK_URI_NOT_LOADED, so
2003-12-01 Hans Petter Jansson <hpj@ximian.com> * libebook/e-book.c (fetch_corba_book): If the book failed to load, set load_state to E_BOOK_URI_NOT_LOADED, so _unload () won't crash.
Diffstat (limited to 'addressbook/libebook')
-rw-r--r--addressbook/libebook/e-book.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/addressbook/libebook/e-book.c b/addressbook/libebook/e-book.c
index 6be424b0a..5628cd98f 100644
--- a/addressbook/libebook/e-book.c
+++ b/addressbook/libebook/e-book.c
@@ -1736,6 +1736,7 @@ fetch_corba_book (EBook *book,
return TRUE;
}
else {
+ book->priv->load_state = E_BOOK_URI_NOT_LOADED;
g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_PROTOCOL_NOT_SUPPORTED,
_("e_book_load_uri: no factories available for uri `%s'"), uri);
return FALSE;