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:
parent
1f13b311fd
commit
9f475d5427
@ -256,7 +256,7 @@ MidiRegionView::MidiRegionView (const MidiRegionView& other, std::shared_ptr<Mid
|
|||||||
void
|
void
|
||||||
MidiRegionView::init (bool /*wfd*/)
|
MidiRegionView::init (bool /*wfd*/)
|
||||||
{
|
{
|
||||||
DisplaySuspender ds (*this);
|
DisplaySuspender ds (*this, true);
|
||||||
|
|
||||||
PublicEditor::DropDownKeys.connect (sigc::mem_fun (*this, &MidiRegionView::drop_down_keys));
|
PublicEditor::DropDownKeys.connect (sigc::mem_fun (*this, &MidiRegionView::drop_down_keys));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user