mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Fix crash when selecting VCA
This commit is contained in:
parent
9ab42f8d14
commit
98d8455098
1 changed files with 7 additions and 1 deletions
|
|
@ -138,10 +138,16 @@ SelectionPropertiesBox::selection_changed ()
|
||||||
_time_info_box->hide ();
|
_time_info_box->hide ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool show_route_properties = false;
|
||||||
if (!selection.tracks.empty ()) {
|
if (!selection.tracks.empty ()) {
|
||||||
TimeAxisView *tav = selection.tracks.front ();
|
TimeAxisView *tav = selection.tracks.front ();
|
||||||
RouteTimeAxisView *rtav = dynamic_cast<RouteTimeAxisView *>(tav);
|
RouteTimeAxisView *rtav = dynamic_cast<RouteTimeAxisView *>(tav);
|
||||||
|
if (rtav) {
|
||||||
_route_prop_box->set_route (rtav->route());
|
_route_prop_box->set_route (rtav->route());
|
||||||
|
show_route_properties = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (show_route_properties) {
|
||||||
_route_prop_box->show();
|
_route_prop_box->show();
|
||||||
} else {
|
} else {
|
||||||
_route_prop_box->hide();
|
_route_prop_box->hide();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue