summaryrefslogtreecommitdiff
path: root/lib/details/ct-input-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/details/ct-input-view.c')
-rwxr-xr-xlib/details/ct-input-view.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/details/ct-input-view.c b/lib/details/ct-input-view.c
index 6ec5c28..232e55c 100755
--- a/lib/details/ct-input-view.c
+++ b/lib/details/ct-input-view.c
@@ -248,7 +248,10 @@ static void input_company_unfocused_cb(void *data, Evas_Object *obj, void *event
ct_input_data *cinput_d = data;
ret = contacts_svc_struct_get_value(cinput_d->contact, CTS_CF_COMPANY_VALUE, &value);
- c_retm_if(CTS_SUCCESS != ret, "contacts_svc_struct_get_value() Failed(%d)", ret);
+ if (NULL == value) {
+ value = contacts_svc_value_new(CTS_VALUE_COMPANY);
+ contacts_svc_struct_store_value(cinput_d->contact, CTS_CF_COMPANY_VALUE, value);
+ }
input_baseinfo_value_set(value, obj, CTS_COMPANY_VAL_NAME_STR);
}
@@ -259,7 +262,8 @@ static void input_nick_unfocused_cb(void *data, Evas_Object *obj, void *event_in
ct_input_data *cinput_d = data;
value = ct_input_get_nickname(cinput_d->contact);
- c_retm_if(NULL == value, "ct_input_get_nickname() return NULL");
+ if (NULL == value)
+ value = input_new_nickname(cinput_d->contact);
input_baseinfo_value_set(value, obj, CTS_NICKNAME_VAL_NAME_STR);
}