X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-Sound.cpp;h=99febcc62d47ac3711079160f1d348e7f8380bc8;hb=f69e09d827e06435ea94bb73aa71ab5f9d5c035b;hp=7d9fcde70028263eb45902674e8f4d4251a1d3f5;hpb=202a753a3225784909977a63022e0f64672e97e6;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor-Sound.cpp b/source/contacteditor/frmContactEditor-Sound.cpp index 7d9fcde..99febcc 100644 --- a/source/contacteditor/frmContactEditor-Sound.cpp +++ b/source/contacteditor/frmContactEditor-Sound.cpp @@ -39,7 +39,8 @@ void frmContactEditor::AddSound( wxCommandEvent& event ) frameCESound->ShowModal(); delete frameCESound; frameCESound = NULL; - + intValueSeek++; + } void frmContactEditor::ModifySound( wxCommandEvent& event ) @@ -50,7 +51,7 @@ void frmContactEditor::ModifySound( wxCommandEvent& event ) long longSelected = -1; int intSelectedData = 0; - if (!GetSelectedItem(lboSounds, + if (lboSounds->GetItemCount() == 0 || !GetSelectedItem(lboSounds, &longSelected, &intSelectedData)){ return; @@ -83,7 +84,7 @@ void frmContactEditor::DeleteSound( wxCommandEvent& event ) long longSelected = -1; int intSelectedData = 0; - if (!GetSelectedItem(lboSounds, + if (lboSounds->GetItemCount() == 0 || !GetSelectedItem(lboSounds, &longSelected, &intSelectedData)){ return; @@ -153,7 +154,7 @@ void frmContactEditor::PlaySound( wxCommandEvent& event ) } - if (!GetSelectedItem(lboSounds, + if (lboSounds->GetItemCount() == 0 || !GetSelectedItem(lboSounds, &longSelected, &intSelectedData)){ return; @@ -201,7 +202,7 @@ void frmContactEditor::SaveSound( wxCommandEvent &event ) long longSelected = -1; int intSelectedData = 0; - if (!GetSelectedItem(lboSounds, + if (lboSounds->GetItemCount() == 0 || !GetSelectedItem(lboSounds, &longSelected, &intSelectedData)){