mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Consolidate code, use dedicated API
This commit is contained in:
parent
2936a4d2bd
commit
593fa3c0c4
1 changed files with 1 additions and 4 deletions
|
|
@ -199,10 +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());
|
||||
|
||||
boost::shared_ptr<GainControl> gcs = stripable->gain_control();
|
||||
boost::shared_ptr<GainControl> gcm = (*v)->gain_control();
|
||||
|
||||
if (gcs->slaved_to (gcm)) {
|
||||
if (stripable->slaved_to (*i)) {
|
||||
item->set_active (true);
|
||||
slaved = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue