NABI_SE Issue fix 56896 56881 56902
authorkamesh <kamesh.kvss@samsung.com>
Thu, 31 Oct 2013 11:16:51 +0000 (16:46 +0530)
committerkamesh <kamesh.kvss@samsung.com>
Thu, 31 Oct 2013 11:16:51 +0000 (16:46 +0530)
Change-Id: I633d8018c64bab86b28cb0f6113c3bf6ad57d1e1

src/CtContactEditorForm.cpp

index 5ba7f83..fcea905 100644 (file)
@@ -786,7 +786,8 @@ ContactEditorForm::OnActionPerformed(const Tizen::Ui::Control& source, int actio
        case IDA_BUTTON_BIRTHDAY_DELETE:
                {
                        __pPresentationModel->RemoveBirthday();
-                       __pTableView->RefreshItem(TABLE_VIEW_BIRTHDAY_FIELD_INDEX, 0, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                       __isContactModified = true;
+                       __pTableView->UpdateTableView();
                }
                break;
        case IDA_BUTTON_TYPE:
@@ -3321,8 +3322,17 @@ ContactEditorForm::OnTextValueChanged(const Tizen::Ui::Control& source)
        if (trimmedString.IsEmpty())
        {
                pDeleteButton->SetShowState(false);
-               __previousItemIndex = itemIndex;  //if the entered text is empty store the index of the field for deletion
-               __previousGroupIndex = groupIndex;
+
+               int Itemcount = __pTableView->GetItemCountAt(groupIndex);
+               if (itemIndex == Itemcount - 1)
+               {
+
+               }
+               else
+               {
+                       __previousItemIndex = itemIndex;  //if the entered text is empty store the index of the field for deletion
+                       __previousGroupIndex = groupIndex;
+               }
        }
        else if (pDeleteButton->GetShowState() == false)
        {