[content] Fix a bug when fail to update and delete content
authorSeokpil Park <seokpil.park@samsung.com>
Mon, 18 Mar 2013 02:34:44 +0000 (11:34 +0900)
committerSeokpil Park <seokpil.park@samsung.com>
Mon, 18 Mar 2013 02:34:50 +0000 (11:34 +0900)
Change-Id: Id590cc6253a8f86d76bf1867210a722e8e6f7c45
Signed-off-by: Seokpil Park <seokpil.park@samsung.com>
project/src/DetailForm.cpp

index e95b475..7b67e98 100644 (file)
@@ -263,7 +263,15 @@ DetailForm::DeleteContent(void)
 CATCH:
        if (popStr.GetLength() > 0)
        {
-               r = msgBox2.Construct("", popStr, MSGBOX_STYLE_NONE, MSG_FAIL_TIMEOUT);
+               if(r == E_SERVICE_BUSY)
+               {
+                       r = msgBox2.Construct("", "Service is busy, Try again.", MSGBOX_STYLE_NONE, MSG_FAIL_TIMEOUT);
+               }
+               else
+               {
+                       r = msgBox2.Construct("", popStr, MSGBOX_STYLE_NONE, MSG_FAIL_TIMEOUT);
+               }
+
                if (!IsFailed(r))
                {
                        r = msgBox2.ShowAndWait(modalResult);
@@ -330,7 +338,15 @@ DetailForm::UpdateContent(void)
 CATCH:
        if (popStr.GetLength() > 0)
        {
-               r = msgBox2.Construct("", popStr, MSGBOX_STYLE_NONE, MSG_FAIL_TIMEOUT);
+               if(r == E_SERVICE_BUSY)
+               {
+                       r = msgBox2.Construct("", "Service is busy, Try again.", MSGBOX_STYLE_NONE, MSG_FAIL_TIMEOUT);
+               }
+               else
+               {
+                       r = msgBox2.Construct("", popStr, MSGBOX_STYLE_NONE, MSG_FAIL_TIMEOUT);
+               }
+
                if (!IsFailed(r))
                {
                        r = msgBox2.ShowAndWait(modalResult);