diff options
author | David Robillard <d@drobilla.net> | 2014-12-06 18:04:30 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-06 22:43:06 -0500 |
commit | eb86971d2d1a9c0b81f8f7ca2b87aa744be54976 (patch) | |
tree | fcb45999f8c4127703b9d045f3e045d6ffb6c909 /libs/ardour/midi_source.cc | |
parent | 2ea4ae603aa02f7626a1ecfa15c8ec1ce474b352 (diff) |
Invalidate iterator whenever model changes.
I suspect this is an underlying cause of several tricky to reproduce bugs, but
we'll have to wait around and see...
Diffstat (limited to 'libs/ardour/midi_source.cc')
-rw-r--r-- | libs/ardour/midi_source.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/midi_source.cc b/libs/ardour/midi_source.cc index f787d49168..adf28cff09 100644 --- a/libs/ardour/midi_source.cc +++ b/libs/ardour/midi_source.cc @@ -397,6 +397,7 @@ void MidiSource::drop_model () { _model.reset(); + invalidate(); ModelChanged (); /* EMIT SIGNAL */ } @@ -404,6 +405,7 @@ void MidiSource::set_model (boost::shared_ptr<MidiModel> m) { _model = m; + invalidate(); ModelChanged (); /* EMIT SIGNAL */ } |