X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorSound.cpp;h=3c92b7c5dae762b14b33ca32a5bf3ab80121cee3;hb=b3c6e1e0d266bddfff1b817633edc77c1c6109f6;hp=4e873f16ac416a67dc33dfd2f2a6a1fcde4f8e45;hpb=da64d37d0a13895554e4ad945c46dd0af6d1c0e6;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorSound.cpp b/source/contacteditor/frmContactEditorSound.cpp index 4e873f1..3c92b7c 100644 --- a/source/contacteditor/frmContactEditorSound.cpp +++ b/source/contacteditor/frmContactEditorSound.cpp @@ -331,8 +331,9 @@ void frmContactEditorSound::SetEditorMode(bool EditMode) intiter = SoundListPrefPtr->find(SoundListIndex); - if (intiter->first == SoundListIndex && intiter->second > 0){ - + if (intiter->first == SoundListIndex && intiter->second > 0 && + intiter != SoundListPrefPtr->end()){ + sliPriority->SetValue(intiter->second); sliPriority->Enable(); chkUsePref->SetValue(TRUE);