13
0

fix crash when removing a track in the presence of VCAs

This commit is contained in:
Paul Davis 2016-06-12 13:07:18 -04:00
parent 9a7fbd53a2
commit 04caff02a1

View File

@ -94,10 +94,12 @@ ControlSlaveUI::update_vca_display ()
Gtkmm2ext::container_clear (*this);
master_connections.drop_connections ();
for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) {
if (stripable->gain_control()->slaved_to ((*v)->gain_control())) {
add_vca_button (*v);
any = true;
if (stripable) {
for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) {
if (stripable->gain_control()->slaved_to ((*v)->gain_control())) {
add_vca_button (*v);
any = true;
}
}
}