avoid double call to ::model_changed() during set up of a MidiRegionView

There is a DisplaySuspender in MidiRegionView::init(), and another invoked
during the addition of a RegionView to a StreamView. Before this change, both
suspenders were created to invoke a full "model-changed" redisplay. Since every
RegionView must be added to a StreamView to be visible, we only need the second
suspender to invoke the model-change. The first one can be just a view
change (and probably isn't necessary at all, but I did not want to change that
much at this point in time).
This commit is contained in:
Paul Davis 2023-09-24 18:41:51 -06:00
parent 1f13b311fd
commit 9f475d5427
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ MidiRegionView::MidiRegionView (const MidiRegionView& other, std::shared_ptr<Mid
void
MidiRegionView::init (bool /*wfd*/)
{
DisplaySuspender ds (*this);
DisplaySuspender ds (*this, true);
PublicEditor::DropDownKeys.connect (sigc::mem_fun (*this, &MidiRegionView::drop_down_keys));