aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-04-19 15:39:57 +0800
committerMilan Crha <mcrha@redhat.com>2011-04-19 15:39:57 +0800
commitcfe983a286308665243727b960ccd6f19deee6f2 (patch)
treef49f49919907fde04e30c10548c89b58e466d907 /addressbook
parent37b3d691ca6f1cc8e305d89cd14aa35856423e8c (diff)
downloadgsoc2013-evolution-cfe983a286308665243727b960ccd6f19deee6f2.tar
gsoc2013-evolution-cfe983a286308665243727b960ccd6f19deee6f2.tar.gz
gsoc2013-evolution-cfe983a286308665243727b960ccd6f19deee6f2.tar.bz2
gsoc2013-evolution-cfe983a286308665243727b960ccd6f19deee6f2.tar.lz
gsoc2013-evolution-cfe983a286308665243727b960ccd6f19deee6f2.tar.xz
gsoc2013-evolution-cfe983a286308665243727b960ccd6f19deee6f2.tar.zst
gsoc2013-evolution-cfe983a286308665243727b960ccd6f19deee6f2.zip
Bug #645610 - [regression] Editing contact doesn't refresh view
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index 6f679a4233..8e62e40d28 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/e-addressbook-model.c
@@ -255,28 +255,27 @@ modify_contact (EBookView *book_view,
array = model->priv->contacts;
while (contact_list != NULL) {
- EContact *contact = contact_list->data;
+ EContact *new_contact = contact_list->data;
const gchar *target_uid;
gint ii;
- target_uid = e_contact_get_const (contact, E_CONTACT_UID);
+ target_uid = e_contact_get_const (new_contact, E_CONTACT_UID);
for (ii = 0; ii < array->len; ii++) {
- EContact *contact;
+ EContact *old_contact;
const gchar *uid;
- contact = array->pdata[ii];
- g_return_if_fail (contact != NULL);
+ old_contact = array->pdata[ii];
+ g_return_if_fail (old_contact != NULL);
- uid = e_contact_get_const (contact, E_CONTACT_UID);
+ uid = e_contact_get_const (old_contact, E_CONTACT_UID);
g_return_if_fail (uid != NULL);
if (strcmp (uid, target_uid) != 0)
continue;
- g_object_unref (contact);
- contact = e_contact_duplicate (contact);
- array->pdata[ii] = contact;
+ g_object_unref (old_contact);
+ array->pdata[ii] = e_contact_duplicate (new_contact);
g_signal_emit (
model, signals[CONTACT_CHANGED], 0, ii);