From: Eugene Kurzberg Date: Fri, 8 Jul 2016 08:41:47 +0000 (+0300) Subject: TSAM-6155 Picture profile changes to the default after selecting but not exchange... X-Git-Tag: submit/tizen/20160708.183507~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e395fa237dd604917f8df83efa51677a73b765c5;p=profile%2Fmobile%2Fapps%2Fnative%2Fphone-contacts.git TSAM-6155 Picture profile changes to the default after selecting but not exchange image Change-Id: I819d59f918c75dc8aa1a1e0987602fbd572a42a9 Signed-off-by: Eugene Kurzberg --- diff --git a/lib-contacts/src/Contacts/Input/ContactImageFieldControl.cpp b/lib-contacts/src/Contacts/Input/ContactImageFieldControl.cpp index 7f01c78..3ddd925 100644 --- a/lib-contacts/src/Contacts/Input/ContactImageFieldControl.cpp +++ b/lib-contacts/src/Contacts/Input/ContactImageFieldControl.cpp @@ -48,8 +48,11 @@ void ContactImageFieldControl::onCreated() void ContactImageFieldControl::onImageResult(app_control_h request, app_control_h reply, app_control_result_e result) { - m_Field.setValue(App::getSingleExtraData(reply, APP_CONTROL_DATA_SELECTED).c_str()); - update(); + std::string value = App::getSingleExtraData(reply, APP_CONTROL_DATA_SELECTED); + if (!value.empty()) { + m_Field.setValue(value.c_str()); + update(); + } } void ContactImageFieldControl::onImagePressed(Evas_Object *image, void *eventInfo)