Emit ContentsChanged on the model when one of its control lists changes. Should fix #3880.

git-svn-id: svn://localhost/ardour2/branches/3.0@10095 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-09-19 17:15:43 +00:00
parent 186a9599b6
commit da4270a93d
3 changed files with 9 additions and 1 deletions

View file

@ -289,6 +289,8 @@ private:
void control_list_interpolation_changed (Evoral::Parameter, Evoral::ControlList::InterpolationStyle);
void automation_list_automation_state_changed (Evoral::Parameter, AutoState);
void control_list_marked_dirty ();
PBD::ScopedConnectionList _midi_source_connections;
// We cannot use a boost::shared_ptr here to avoid a retain cycle

View file

@ -1946,3 +1946,9 @@ MidiModel::transpose (TimeType from, TimeType to, int semitones)
apply_command (s->session (), c);
}
void
MidiModel::control_list_marked_dirty ()
{
ContentsChanged (); /* EMIT SIGNAL */
}

View file

@ -313,7 +313,7 @@ private:
void get_notes_by_pitch (Notes&, NoteOperator, uint8_t val, int chan_mask = 0) const;
void get_notes_by_velocity (Notes&, NoteOperator, uint8_t val, int chan_mask = 0) const;
void control_list_marked_dirty ();
virtual void control_list_marked_dirty ();
const TypeMap& _type_map;