aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-model.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-07 13:53:59 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-07 13:53:59 +0800
commitcf022042c82501ba50622b144829a4ce9e301ecb (patch)
tree5c7716d7914543c78a8c4e8e0475f9439006aaa8 /addressbook/gui/widgets/e-addressbook-model.c
parent97505d53504d42a41b4dd61ba99cb784e665d6c4 (diff)
downloadgsoc2013-evolution-cf022042c82501ba50622b144829a4ce9e301ecb.tar
gsoc2013-evolution-cf022042c82501ba50622b144829a4ce9e301ecb.tar.gz
gsoc2013-evolution-cf022042c82501ba50622b144829a4ce9e301ecb.tar.bz2
gsoc2013-evolution-cf022042c82501ba50622b144829a4ce9e301ecb.tar.lz
gsoc2013-evolution-cf022042c82501ba50622b144829a4ce9e301ecb.tar.xz
gsoc2013-evolution-cf022042c82501ba50622b144829a4ce9e301ecb.tar.zst
gsoc2013-evolution-cf022042c82501ba50622b144829a4ce9e301ecb.zip
Make the addressbook create the correct file uri. Added a default query.
2000-05-07 Christopher James Lahey <clahey@helixcode.com> * gui/component/addressbook.c: Make the addressbook create the correct file uri. Added a default query. Initialize view->model and view->view to NULL. * gui/component/e-addressbook-model.c, gui/minicard/e-minicard-view.c: Only call get_book_view if both book and query and non-null. svn path=/trunk/; revision=2861
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-model.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index 10b74dd7da..7bbdcaa5bd 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/e-addressbook-model.c
@@ -263,7 +263,8 @@ book_view_loaded (EBook *book, EBookStatus status, EBookView *book_view, gpointe
static gboolean
get_view(EAddressbookModel *model)
{
- e_book_get_book_view(model->book, model->query, book_view_loaded, model);
+ if (model->book && model->query)
+ e_book_get_book_view(model->book, model->query, book_view_loaded, model);
model->get_view_idle = 0;
return FALSE;