X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorIM.cpp;h=9d22d94e0fae784dee8fe78d8b1114a81533ce1e;hb=c139f797277a0cd85fe9f0b6b8244b791e0cf9ab;hp=40bfef1485d94b68b51da11012ede86e00283ca7;hpb=d4a3b50aae4237e9b5a0f4b3bd0a2eb4e8b69c3c;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorIM.cpp b/source/contacteditor/frmContactEditorIM.cpp index 40bfef1..9d22d94 100644 --- a/source/contacteditor/frmContactEditorIM.cpp +++ b/source/contacteditor/frmContactEditorIM.cpp @@ -300,8 +300,17 @@ void frmContactEditorIM::SetEditorMode(bool EditMode, SectionType SectType) } - strIMUser = IMListPtr->find(IMListIndex)->second; - strIMType = IMListTypeInfoPtr->find(IMListIndex)->second; + if (IMListPtr->find(IMListIndex) != IMListPtr->end()){ + + strIMUser = IMListPtr->find(IMListIndex)->second; + + } + + if (IMListTypeInfoPtr->find(IMListIndex) != IMListTypeInfoPtr->end()){ + + strIMType = IMListTypeInfoPtr->find(IMListIndex)->second; + + } if (strIMType == wxT("aim")){ @@ -348,7 +357,8 @@ void frmContactEditorIM::SetEditorMode(bool EditMode, SectionType SectType) intiter = IMListPrefPtr->find(IMListIndex); - if (intiter->first == IMListIndex && intiter->second > 0){ + if (intiter->first == IMListIndex && intiter->second > 0 && + intiter != IMListPrefPtr->end()){ sliPriority->SetValue(intiter->second); sliPriority->Enable();