summaryrefslogtreecommitdiff
path: root/gtk2_ardour/control_slave_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-02-27 16:49:29 +0100
committerRobin Gareus <robin@gareus.org>2019-02-27 16:49:29 +0100
commit61623f730c36ec6306f42afeea951b4d91c199bd (patch)
tree8ab8af7906974a1c2d3c43a937036c9b61366fe5 /gtk2_ardour/control_slave_ui.cc
parent593fa3c0c4daf7dda018ea76b380eedb02883ca6 (diff)
More slaved_to() replacements, fix typo
Diffstat (limited to 'gtk2_ardour/control_slave_ui.cc')
-rw-r--r--gtk2_ardour/control_slave_ui.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/control_slave_ui.cc b/gtk2_ardour/control_slave_ui.cc
index 50a10b03b2..f3b8a00b87 100644
--- a/gtk2_ardour/control_slave_ui.cc
+++ b/gtk2_ardour/control_slave_ui.cc
@@ -102,7 +102,7 @@ ControlSlaveUI::update_vca_display ()
if (stripable) {
for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) {
- if (stripable->gain_control()->slaved_to ((*v)->gain_control())) {
+ if (stripable->slaved_to (*v)) {
add_vca_button (*v);
any = true;
}
@@ -199,7 +199,7 @@ ControlSlaveUI::vca_button_release (GdkEventButton* ev, uint32_t n)
items.push_back (CheckMenuElem ((*v)->name()));
Gtk::CheckMenuItem* item = dynamic_cast<Gtk::CheckMenuItem*> (&items.back());
- if (stripable->slaved_to (*i)) {
+ if (stripable->slaved_to (*v)) {
item->set_active (true);
slaved = true;
}