From 73ed6e6021fcfa09ffda231871fe6926f54ff940 Mon Sep 17 00:00:00 2001 From: Gwangbok Kim Date: Sat, 29 Jun 2013 19:41:46 +0900 Subject: [PATCH] fix N_SE-43922 Change-Id: I091cb4674c30f024abcb104919188ed007594b29 Signed-off-by: Gwangbok Kim --- project/src/MainForm.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/project/src/MainForm.cpp b/project/src/MainForm.cpp index dea1e94..600d8f5 100644 --- a/project/src/MainForm.cpp +++ b/project/src/MainForm.cpp @@ -190,6 +190,27 @@ MainForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, in Person* pPerson = static_cast (__pPersonList->GetAt(index)); AppAssert(pPerson); + Person* pCheckPerson = AddressbookManager::GetInstance()->GetPersonN(pPerson->GetId()); + if (pCheckPerson == null) + { + MessageBox messageBox; + int doModal; + + if (GetLastResult() == E_USER_NOT_CONSENTED) + { + messageBox.Construct(L"Error", "No permission to use Contact.", MSGBOX_STYLE_OK, 0); + messageBox.ShowAndWait(doModal); + } + else + { + messageBox.Construct(L"Error", "The person doesn't exist.", MSGBOX_STYLE_OK, 0); + messageBox.ShowAndWait(doModal); + } + + return; + } + delete pCheckPerson; + ArrayList* pPersonList = new (std::nothrow) ArrayList(); AppAssert(pPersonList); -- 2.7.4