Consolidate code, use dedicated API
This commit is contained in:
parent
2936a4d2bd
commit
593fa3c0c4
@ -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…
Reference in New Issue
Block a user