}
- TelephoneListTypePtr->insert(std::make_pair(TelephoneListIndex, strTelTypes));
+ TelephoneListTypePtr->insert(std::make_pair(TelephoneListIndex, strTelTypes));
+
+ TelephoneListTypeInfoPtr->insert(std::make_pair(TelephoneListIndex, strTelTypes));
// Add Telephone Priority.
TelephoneListTypePtr->erase(TelephoneListIndex);
TelephoneListTypePtr->insert(std::make_pair(TelephoneListIndex, strTelTypes));
+ TelephoneListTypeInfoPtr->erase(TelephoneListIndex);
+ TelephoneListTypeInfoPtr->insert(std::make_pair(TelephoneListIndex, strTelTypes));
+
// Edit the Telephone Priority.
TelephoneListPrefPtr->erase(TelephoneListIndex);
intiter = TelephoneListPrefPtr->find(TelephoneListIndex);
- if (intiter->first == TelephoneListIndex && intiter->second > 0){
+ if (intiter->first == TelephoneListIndex && intiter->second > 0 &&
+ intiter != TelephoneListPrefPtr->end()){
sliPriority->SetValue(intiter->second);
sliPriority->Enable();