mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
Fix a few missing drops of Route references.
git-svn-id: svn://localhost/ardour2/branches/3.0@9571 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
09d4ab251e
commit
32df620938
5 changed files with 21 additions and 1 deletions
|
|
@ -245,12 +245,22 @@ AutomationTimeAxisView::AutomationTimeAxisView (
|
|||
|
||||
automation_state_changed ();
|
||||
ColorsChanged.connect (sigc::mem_fun (*this, &AutomationTimeAxisView::color_handler));
|
||||
|
||||
_route->DropReferences.connect (
|
||||
_route_connections, invalidator (*this), ui_bind (&AutomationTimeAxisView::route_going_away, this), gui_context ()
|
||||
);
|
||||
}
|
||||
|
||||
AutomationTimeAxisView::~AutomationTimeAxisView ()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
AutomationTimeAxisView::route_going_away ()
|
||||
{
|
||||
_route.reset ();
|
||||
}
|
||||
|
||||
void
|
||||
AutomationTimeAxisView::auto_clicked ()
|
||||
{
|
||||
|
|
@ -492,7 +502,7 @@ AutomationTimeAxisView::set_height (uint32_t h)
|
|||
}
|
||||
|
||||
if (changed) {
|
||||
if (canvas_item_visible (_canvas_display)) {
|
||||
if (canvas_item_visible (_canvas_display) && _route) {
|
||||
/* only emit the signal if the height really changed and we were visible */
|
||||
_route->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue