From b92fb7c88fb213128ef7b2453fd67aabb4294499 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 14 May 2003 21:52:26 +0000 Subject: handle the case where we haven't filled in the address yet. fixes #42620. 2003-05-14 Chris Toshok * 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 --- addressbook/gui/contact-editor/e-contact-editor.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'addressbook/gui/contact-editor') 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 -- cgit v1.2.3