- MenuItemIter = MenuItems.find("editcontact");
- MenuItemIter->second->Enable(ContactSelected);
- MenuItemIter = MenuItems.find("revealcontact");
- MenuItemIter->second->Enable(ContactSelected);
+
+ if (SearchModeOnly == TRUE){
+
+ MenuItemIter = MenuItems.find("editcontact");
+ MenuItemIter->second->Enable(FALSE);
+ MenuItemIter = MenuItems.find("revealcontact");
+ MenuItemIter->second->Enable(FALSE);
+
+ } else {
+
+ MenuItemIter = MenuItems.find("editcontact");
+ MenuItemIter->second->Enable(ContactSelected);
+ MenuItemIter = MenuItems.find("revealcontact");
+ MenuItemIter->second->Enable(ContactSelected);
+
+ }