summaryrefslogtreecommitdiff
path: root/project/src/AddAccountForm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project/src/AddAccountForm.cpp')
-rw-r--r--project/src/AddAccountForm.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/project/src/AddAccountForm.cpp b/project/src/AddAccountForm.cpp
index 091ec5c..91ce733 100644
--- a/project/src/AddAccountForm.cpp
+++ b/project/src/AddAccountForm.cpp
@@ -84,6 +84,15 @@ AddAccountForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId
result r = pAccountManager->AddAccount(account);
if (IsFailed(r))
{
+ if (r == E_USER_NOT_CONSENTED)
+ {
+ MessageBox messageBox;
+ messageBox.Construct(L"Error", L"The account privacy should be enabled.", MSGBOX_STYLE_OK);
+
+ int modalResult;
+ messageBox.ShowAndWait(modalResult);
+ }
+
AppControlProviderManager::GetInstance()->SendAppControlResult(__reqId, APP_CTRL_RESULT_FAILED, null);
}
else