fix N_SE-44965
authorGwangbok Kim <gwangbok.kim@samsung.com>
Mon, 8 Jul 2013 05:32:03 +0000 (14:32 +0900)
committerGwangbok Kim <gwangbok.kim@samsung.com>
Mon, 8 Jul 2013 05:32:03 +0000 (14:32 +0900)
Change-Id: Ia0122e417d7200e8cc2aeb61ea9f7c1a088cca4f
Signed-off-by: Gwangbok Kim <gwangbok.kim@samsung.com>
project/src/EditContactForm.cpp

index 7d86b3e..b36d3e8 100644 (file)
@@ -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);