diff options
author | Chris Toshok <toshok@ximian.com> | 2004-07-13 02:28:08 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-07-13 02:28:08 +0800 |
commit | ae2cc62f2c4e1a4476e77afa853d3c1563c8234f (patch) | |
tree | 0aacd6c0ac619615f3d8b455dffee42b0f1dcac4 /addressbook/gui/component | |
parent | 9b6df5d229e8e70afa3c1eee0297a5f42d234829 (diff) | |
download | gsoc2013-evolution-ae2cc62f2c4e1a4476e77afa853d3c1563c8234f.tar.gz gsoc2013-evolution-ae2cc62f2c4e1a4476e77afa853d3c1563c8234f.tar.zst gsoc2013-evolution-ae2cc62f2c4e1a4476e77afa853d3c1563c8234f.zip |
[ fixes #61299 ]
2004-07-12 Chris Toshok <toshok@ximian.com>
[ fixes #61299 ]
* gui/component/addressbook.c (addressbook_load_default_book):
don't pass @closure to load_source_cb, since that expects to get a
LoadSourceData*. also, don't always call e_book_async_open. only
do that when the book is non-NULL.
svn path=/trunk/; revision=26626
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r-- | addressbook/gui/component/addressbook.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index ec113b9578..32363c66be 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -280,7 +280,7 @@ addressbook_load_default_book (EBookCallback cb, gpointer closure) book = e_book_new_default_addressbook (NULL); if (!book) - load_source_cb (NULL, E_BOOK_ERROR_OTHER_ERROR, closure); /* XXX we should just use a GError and it's error code here */ - - e_book_async_open (book, FALSE, default_book_cb, load_source_data); + load_source_cb (NULL, E_BOOK_ERROR_OTHER_ERROR, load_source_data); /* XXX we should just use a GError and it's error code here */ + else + e_book_async_open (book, FALSE, default_book_cb, load_source_data); } |