diff options
author | Chris Toshok <toshok@ximian.com> | 2003-05-15 05:52:26 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2003-05-15 05:52:26 +0800 |
commit | b92fb7c88fb213128ef7b2453fd67aabb4294499 (patch) | |
tree | 0504dcade1ae8429541621f6cf501a898ea9ec42 /addressbook | |
parent | 946d755adc6d2d7c1163e2993293a099651b0af7 (diff) | |
download | gsoc2013-evolution-b92fb7c88fb213128ef7b2453fd67aabb4294499.tar.gz gsoc2013-evolution-b92fb7c88fb213128ef7b2453fd67aabb4294499.tar.zst gsoc2013-evolution-b92fb7c88fb213128ef7b2453fd67aabb4294499.zip |
handle the case where we haven't filled in the address yet. fixes #42620.
2003-05-14 Chris Toshok <toshok@ximian.com>
* gui/contact-editor/e-contact-editor.c (address_mailing_changed):
handle the case where we haven't filled in the address yet. fixes
#42620.
svn path=/trunk/; revision=21182
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 9df678ecb8..64f01c9ecf 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2003-05-14 Chris Toshok <toshok@ximian.com> + + * gui/contact-editor/e-contact-editor.c (address_mailing_changed): + handle the case where we haven't filled in the address yet. fixes + #42620. + 2003-05-14 JP Rosevear <jpr@ximian.com> * gui/component/addressbook.c (addressbook_view_unref): clear the diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 8de9ca4636..bf83eeb012 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -367,6 +367,9 @@ address_mailing_changed (GtkWidget *widget, EContactEditor *editor) address = e_card_delivery_address_copy (curr); + if (!address) + address = e_card_delivery_address_new (); + if (mailing_address) address->flags |= E_CARD_ADDR_DEFAULT; else |