aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-05-15 05:52:26 +0800
committerChris Toshok <toshok@src.gnome.org>2003-05-15 05:52:26 +0800
commitb92fb7c88fb213128ef7b2453fd67aabb4294499 (patch)
tree0504dcade1ae8429541621f6cf501a898ea9ec42 /addressbook/gui/contact-editor
parent946d755adc6d2d7c1163e2993293a099651b0af7 (diff)
downloadgsoc2013-evolution-b92fb7c88fb213128ef7b2453fd67aabb4294499.tar
gsoc2013-evolution-b92fb7c88fb213128ef7b2453fd67aabb4294499.tar.gz
gsoc2013-evolution-b92fb7c88fb213128ef7b2453fd67aabb4294499.tar.bz2
gsoc2013-evolution-b92fb7c88fb213128ef7b2453fd67aabb4294499.tar.lz
gsoc2013-evolution-b92fb7c88fb213128ef7b2453fd67aabb4294499.tar.xz
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/gui/contact-editor')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c3
1 files changed, 3 insertions, 0 deletions
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