From 263f3de8a41cb24578e66988a72f8683cc06db5d Mon Sep 17 00:00:00 2001 From: Gwangbok Kim Date: Mon, 8 Jul 2013 14:32:03 +0900 Subject: [PATCH] fix N_SE-44965 Change-Id: Ia0122e417d7200e8cc2aeb61ea9f7c1a088cca4f Signed-off-by: Gwangbok Kim --- project/src/EditContactForm.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/project/src/EditContactForm.cpp b/project/src/EditContactForm.cpp index 7d86b3e..b36d3e8 100644 --- a/project/src/EditContactForm.cpp +++ b/project/src/EditContactForm.cpp @@ -234,9 +234,12 @@ EditContactForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionI SceneManager* pSceneManager = SceneManager::GetInstance(); AppAssert(pSceneManager); - result r = E_SUCCESS; - r = SaveContact(__selectedTabId); - if (IsFailed(r)) + result r = SaveContact(__selectedTabId); + if (r == E_FAILURE) + { + break; + } + else if (IsFailed(r)) { MessageBox messageBox; messageBox.Construct(L"Error", "Failed to update contact", MSGBOX_STYLE_OK, 0); @@ -515,7 +518,7 @@ EditContactForm::SaveContact(int index) if (__firstName.IsEmpty() && __lastName.IsEmpty()) { MessageBox messageBox; - messageBox.Construct(L"Info", "Enter the first name and last name", MSGBOX_STYLE_OK, 0); + messageBox.Construct(L"Info", "Enter the first name or last name", MSGBOX_STYLE_OK, 0); int doModal; messageBox.ShowAndWait(doModal); -- 2.7.4