mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Emit selection RegionsChanged when region is removed
This is required to properly update the selection. Previously deleting a region did not update selection markers and other selection displays that depend on Editor::get_selection_extents (which includes region selection). This fixes a crash: Select a region (this sets a time-selection). Delete the region, click on the time-selection markers (red triangles).
This commit is contained in:
parent
1c8b91ed86
commit
d37f85f9d2
3 changed files with 3 additions and 15 deletions
|
|
@ -77,6 +77,9 @@ Selection::Selection (const PublicEditor* e, bool mls)
|
|||
|
||||
void (Selection::*point_remove)(ControlPoint*) = &Selection::remove;
|
||||
ControlPoint::CatchDeletion.connect (*this, MISSING_INVALIDATOR, boost::bind (point_remove, this, _1), gui_context());
|
||||
|
||||
void (Selection::*rv_remove)(RegionView*) = &Selection::remove;
|
||||
RegionView::RegionViewGoingAway.connect (*this, MISSING_INVALIDATOR, boost::bind (rv_remove, this, _1), gui_context());
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue