aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-06-19 02:28:07 +0800
committerChris Toshok <toshok@src.gnome.org>2004-06-19 02:28:07 +0800
commitd1d0e8e307fc3fd65d15a407637129d529bb0668 (patch)
tree51b11a4ff2a7335818ec5eb04645761ba47f7c47 /addressbook
parentf4cea63565f0f1e9485027108292d87143b0eba2 (diff)
downloadgsoc2013-evolution-d1d0e8e307fc3fd65d15a407637129d529bb0668.tar
gsoc2013-evolution-d1d0e8e307fc3fd65d15a407637129d529bb0668.tar.gz
gsoc2013-evolution-d1d0e8e307fc3fd65d15a407637129d529bb0668.tar.bz2
gsoc2013-evolution-d1d0e8e307fc3fd65d15a407637129d529bb0668.tar.lz
gsoc2013-evolution-d1d0e8e307fc3fd65d15a407637129d529bb0668.tar.xz
gsoc2013-evolution-d1d0e8e307fc3fd65d15a407637129d529bb0668.tar.zst
gsoc2013-evolution-d1d0e8e307fc3fd65d15a407637129d529bb0668.zip
only go through the process of creating/loading the EBook if the model has
2004-06-18 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-model.c (e_select_names_model_load_contacts): only go through the process of creating/loading the EBook if the model has some data in it. svn path=/trunk/; revision=26424
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/component/select-names/e-select-names-model.c8
2 files changed, 11 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index a439fab076..50c246832d 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,11 @@
2004-06-18 Chris Toshok <toshok@ximian.com>
+ * gui/component/select-names/e-select-names-model.c
+ (e_select_names_model_load_contacts): only go through the process
+ of creating/loading the EBook if the model has some data in it.
+
+2004-06-18 Chris Toshok <toshok@ximian.com>
+
[ fixes bug #59376 ]
* gui/component/addressbook-view.c (fill_popup_menu_callback):
diff --git a/addressbook/gui/component/select-names/e-select-names-model.c b/addressbook/gui/component/select-names/e-select-names-model.c
index de5ed4723d..46b66d5ef1 100644
--- a/addressbook/gui/component/select-names/e-select-names-model.c
+++ b/addressbook/gui/component/select-names/e-select-names-model.c
@@ -684,11 +684,13 @@ e_select_names_model_load_contacts (ESelectNamesModel *model)
g_return_if_fail (E_IS_SELECT_NAMES_MODEL (model));
- g_object_ref (model);
+ if (model->priv->data) {
+ g_object_ref (model);
- book = e_book_new_default_addressbook (NULL);
+ book = e_book_new_default_addressbook (NULL);
- e_book_async_open (book, TRUE, book_opened, model);
+ e_book_async_open (book, TRUE, book_opened, model);
+ }
}
void