aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorMichael Meeks <michael@helixcode.com>2001-01-04 08:59:29 +0800
committerMichael Meeks <michael@src.gnome.org>2001-01-04 08:59:29 +0800
commit30ff318dbb64f32d4038730013f4474a47db170c (patch)
tree71948be99a5ba95b67bd6971e5c0e7eb59f23c91 /addressbook/gui/widgets
parentbe58a487020d59bfbd012596ec74bf1ddb715c5d (diff)
downloadgsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.gz
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.bz2
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.lz
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.xz
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.tar.zst
gsoc2013-evolution-30ff318dbb64f32d4038730013f4474a47db170c.zip
check capabilities is valid before doing a strstr.
2001-01-03 Michael Meeks <michael@helixcode.com> * gui/widgets/e-addressbook-model.c (get_view): check capabilities is valid before doing a strstr. svn path=/trunk/; revision=7242
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index 830b70879c..35c8dda745 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/e-addressbook-model.c
@@ -317,19 +317,19 @@ book_view_loaded (EBook *book, EBookStatus status, EBookView *book_view, gpointe
}
static gboolean
-get_view(EAddressbookModel *model)
+get_view (EAddressbookModel *model)
{
if (model->book && model->query) {
if (model->first_get_view) {
char *capabilities;
- capabilities = e_book_get_static_capabilities(model->book);
- if (strstr(capabilities, "local")) {
- e_book_get_book_view(model->book, model->query, book_view_loaded, model);
+ capabilities = e_book_get_static_capabilities (model->book);
+ if (capabilities && strstr (capabilities, "local")) {
+ e_book_get_book_view (model->book, model->query, book_view_loaded, model);
}
model->first_get_view = FALSE;
}
else
- e_book_get_book_view(model->book, model->query, book_view_loaded, model);
+ e_book_get_book_view (model->book, model->query, book_view_loaded, model);
}
model->get_view_idle = 0;