aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-12-17 12:49:40 +0800
committerHans Petter <hansp@src.gnome.org>2003-12-17 12:49:40 +0800
commitef5c4898659a7811fb442b5cf7b85ec346332381 (patch)
treedf1c0a167f498643946400356475d8e6eedb8bcf /addressbook
parent216085f3c1c253bb9c3418af484ff571c8111414 (diff)
downloadgsoc2013-evolution-ef5c4898659a7811fb442b5cf7b85ec346332381.tar
gsoc2013-evolution-ef5c4898659a7811fb442b5cf7b85ec346332381.tar.gz
gsoc2013-evolution-ef5c4898659a7811fb442b5cf7b85ec346332381.tar.bz2
gsoc2013-evolution-ef5c4898659a7811fb442b5cf7b85ec346332381.tar.lz
gsoc2013-evolution-ef5c4898659a7811fb442b5cf7b85ec346332381.tar.xz
gsoc2013-evolution-ef5c4898659a7811fb442b5cf7b85ec346332381.tar.zst
gsoc2013-evolution-ef5c4898659a7811fb442b5cf7b85ec346332381.zip
Update the contact's UID after normal add.
2003-12-16 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (contact_added_cb): Update the contact's UID after normal add. svn path=/trunk/; revision=23959
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 4f2d70de5c..eb9596ccdf 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2003-12-16 Hans Petter Jansson <hpj@ximian.com>
+ * gui/contact-editor/e-contact-editor.c (contact_added_cb): Update
+ the contact's UID after normal add.
+
+2003-12-16 Hans Petter Jansson <hpj@ximian.com>
+
* gui/component/addressbook.c (addressbook_show_load_error_dialog):
Make a public function that shows an error dialog, which can be used
when a source fails to load.
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 71ac2949d9..e80901fa5e 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -1059,6 +1059,8 @@ contact_added_cb (EBook *book, EBookStatus status, const char *id, EditorCloseSt
gtk_widget_set_sensitive (ce->app, TRUE);
ce->in_async_call = FALSE;
+ e_contact_set (ce->contact, E_CONTACT_UID, (char *) id);
+
g_signal_emit (ce, contact_editor_signals[CONTACT_ADDED], 0,
status, ce->contact);