summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-10-17 17:32:56 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-11-02 16:32:18 -0600
commit0573e7cdf088f194b082e5546796161fe37109a8 (patch)
treecefa474b50c3c5111edad0bef131b4f256963403 /gtk2_ardour/midi_region_view.cc
parent2cf9ad8f8c21cc445c8eabc6856fd9956926203f (diff)
alter where note resolution happens when a re-rendering is scheduled for a MIDI track
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r--gtk2_ardour/midi_region_view.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc
index 040bbbeecc..c74b91596a 100644
--- a/gtk2_ardour/midi_region_view.cc
+++ b/gtk2_ardour/midi_region_view.cc
@@ -1084,8 +1084,6 @@ MidiRegionView::apply_diff (bool as_subcommand, bool was_copy)
}
}
- midi_view()->midi_track()->midi_playlist()->region_edited (_region, _note_diff_command);
-
if (as_subcommand) {
_model->apply_command_as_subcommand (*trackview.session(), _note_diff_command);
} else {
@@ -1100,8 +1098,11 @@ MidiRegionView::apply_diff (bool as_subcommand, bool was_copy)
}
_marked_for_velocity.clear();
+
if (commit) {
trackview.editor().commit_reversible_command ();
+ /* XXX the GUI should NOT be responsible for causing this call tree */
+ midi_view()->midi_track()->region_edited (_region);
}
}