mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
MidiView: avoid calling ::model_changed() if there is no model
The method asserts (_model). We prefer the logic in the caller (at least for now)
This commit is contained in:
parent
db364a6db1
commit
54d3bf9071
1 changed files with 4 additions and 2 deletions
|
|
@ -207,8 +207,10 @@ void
|
||||||
MidiView::note_mode_changed ()
|
MidiView::note_mode_changed ()
|
||||||
{
|
{
|
||||||
clear_events ();
|
clear_events ();
|
||||||
|
if (_model) {
|
||||||
model_changed ();
|
model_changed ();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
MidiView::show_start (bool yn)
|
MidiView::show_start (bool yn)
|
||||||
|
|
@ -1141,7 +1143,7 @@ MidiView::redisplay (bool view_only)
|
||||||
what_changed.add (Properties::length);
|
what_changed.add (Properties::length);
|
||||||
|
|
||||||
region_resized (what_changed);
|
region_resized (what_changed);
|
||||||
} else {
|
} else if (_model) {
|
||||||
/* Block calls to update note range at all as we add notes in
|
/* Block calls to update note range at all as we add notes in
|
||||||
::model_changed()
|
::model_changed()
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue