summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhs321.lee <hs321.lee@samsung.com>2013-10-28 15:08:19 +0900
committerhs321.lee <hs321.lee@samsung.com>2013-10-28 15:08:26 +0900
commit24d47cb2c9b858877696a854489a3f2118c03fae (patch)
tree8665f3050788f8b27adf5fad1e2ac8b9ef78b747
parent619d7dffb0744f618586c17a7def5d760868b9f2 (diff)
downloadAccountApp-tizen_2.2.tar.gz
AccountApp-tizen_2.2.tar.bz2
AccountApp-tizen_2.2.zip
Change-Id: I497a1fac7be4a285ff67afd7f59c5d9aec79fcbd Signed-off-by: hs321.lee <hs321.lee@samsung.com>
-rw-r--r--project/inc/ConfigureAccountForm.h1
-rw-r--r--project/src/ConfigureAccountForm.cpp7
2 files changed, 7 insertions, 1 deletions
diff --git a/project/inc/ConfigureAccountForm.h b/project/inc/ConfigureAccountForm.h
index 13d46b7..6c249b0 100644
--- a/project/inc/ConfigureAccountForm.h
+++ b/project/inc/ConfigureAccountForm.h
@@ -64,6 +64,7 @@ private:
RequestId __reqId;
Tizen::Social::AccountId __accountId;
bool __isFrameActivated;
+ bool __isMessageBoxActivated;
result __resultForPopup;
};
diff --git a/project/src/ConfigureAccountForm.cpp b/project/src/ConfigureAccountForm.cpp
index dafca22..b74284d 100644
--- a/project/src/ConfigureAccountForm.cpp
+++ b/project/src/ConfigureAccountForm.cpp
@@ -39,6 +39,7 @@ ConfigureAccountForm::ConfigureAccountForm(void)
: __reqId(INVALID_REQUEST_ID)
, __accountId(INVALID_ACCOUNT_ID)
, __isFrameActivated(false)
+ , __isMessageBoxActivated(false)
, __resultForPopup(E_SUCCESS)
{
}
@@ -271,7 +272,7 @@ ConfigureAccountForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& curre
void
ConfigureAccountForm::OnFrameActivated(const Tizen::Ui::Controls::Frame &source)
{
- if (__resultForPopup != E_SUCCESS)
+ if (__resultForPopup != E_SUCCESS && __isMessageBoxActivated == false)
{
ShowMessagePopup(__resultForPopup, L"Failed to get the account.");
TerminateApp();
@@ -316,8 +317,12 @@ ConfigureAccountForm::ShowMessagePopup(result r, String errorMessage)
messageBox.Construct(L"Error", errorMessage, MSGBOX_STYLE_OK);
}
+ __isMessageBoxActivated = true;
+
int modalResult;
messageBox.ShowAndWait(modalResult);
+
+ __isMessageBoxActivated = false;
}
void