mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +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,7 +207,9 @@ void
|
|||
MidiView::note_mode_changed ()
|
||||
{
|
||||
clear_events ();
|
||||
model_changed ();
|
||||
if (_model) {
|
||||
model_changed ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -1141,7 +1143,7 @@ MidiView::redisplay (bool view_only)
|
|||
what_changed.add (Properties::length);
|
||||
|
||||
region_resized (what_changed);
|
||||
} else {
|
||||
} else if (_model) {
|
||||
/* Block calls to update note range at all as we add notes in
|
||||
::model_changed()
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue