summaryrefslogtreecommitdiff
path: root/gtk2_ardour/control_slave_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-12 13:07:18 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-12 13:07:24 -0400
commit04caff02a162a8651a4ac3156b26a250b1ffeb50 (patch)
tree18aef2f73ba788487cf9c34dee85ce982a575da3 /gtk2_ardour/control_slave_ui.cc
parent9a7fbd53a2ef9158a397b865fe7e7e19659e9325 (diff)
fix crash when removing a track in the presence of VCAs
Diffstat (limited to 'gtk2_ardour/control_slave_ui.cc')
-rw-r--r--gtk2_ardour/control_slave_ui.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk2_ardour/control_slave_ui.cc b/gtk2_ardour/control_slave_ui.cc
index 3fd752c72f..dcb62971cf 100644
--- a/gtk2_ardour/control_slave_ui.cc
+++ b/gtk2_ardour/control_slave_ui.cc
@@ -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;
+ }
}
}