Chord deletion is a song change

This commit is contained in:
Matthias Neeracher 2007-05-04 05:41:25 +00:00
parent ca9592111c
commit 9ca99f9e7e

View File

@ -120,7 +120,9 @@ std::string NormalizeName(NSString* rawName)
{ {
std::string chordName = NormalizeName(val); std::string chordName = NormalizeName(val);
if (!chordName.size()) { if (!chordName.size()) {
[[fView document] willChangeSong];
fSong->DelChord(fMeasure, fAt); fSong->DelChord(fMeasure, fAt);
[[fView document] didChangeSong];
} else { } else {
VLChord chord(chordName); VLChord chord(chordName);
VLSoundOut::Instance()->PlayChord(chord); VLSoundOut::Instance()->PlayChord(chord);