mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
slight tweak for more code consistency between ::toggle_solo() and ::toggle_mute()
This commit is contained in:
parent
cbe342c357
commit
45eef0be1b
1 changed files with 3 additions and 3 deletions
|
|
@ -5956,7 +5956,7 @@ Editor::toggle_mute ()
|
||||||
{
|
{
|
||||||
bool new_state = false;
|
bool new_state = false;
|
||||||
bool first = true;
|
bool first = true;
|
||||||
StripableList sl;
|
boost::shared_ptr<ControlList> cl (new ControlList);
|
||||||
|
|
||||||
for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
|
for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
|
||||||
StripableTimeAxisView *stav = dynamic_cast<StripableTimeAxisView *>(*i);
|
StripableTimeAxisView *stav = dynamic_cast<StripableTimeAxisView *>(*i);
|
||||||
|
|
@ -5970,10 +5970,10 @@ Editor::toggle_mute ()
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sl.push_back (stav->stripable());
|
cl->push_back (stav->stripable()->mute_control());
|
||||||
}
|
}
|
||||||
|
|
||||||
_session->set_controls (stripable_list_to_control_list (sl, &Stripable::mute_control), new_state, Controllable::UseGroup);
|
_session->set_controls (cl, new_state, Controllable::UseGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue