remove unnecessary scoping
This commit is contained in:
parent
c5db19bc52
commit
99cfd00e86
@ -1595,26 +1595,25 @@ EditorRoutes::idle_update_mute_rec_solo_etc()
|
||||
(*i)[_columns.solo_isolate_state] = RouteUI::solo_isolate_active_state (route) ? 1 : 0;
|
||||
(*i)[_columns.solo_safe_state] = RouteUI::solo_safe_active_state (route) ? 1 : 0;
|
||||
(*i)[_columns.active] = route->active ();
|
||||
{
|
||||
if (boost::dynamic_pointer_cast<Track> (route)) {
|
||||
boost::shared_ptr<MidiTrack> mt = boost::dynamic_pointer_cast<MidiTrack> (route);
|
||||
|
||||
if (route->record_enabled()) {
|
||||
if (_session->record_status() == Session::Recording) {
|
||||
(*i)[_columns.rec_state] = 1;
|
||||
} else {
|
||||
(*i)[_columns.rec_state] = 2;
|
||||
}
|
||||
} else if (mt && mt->step_editing()) {
|
||||
(*i)[_columns.rec_state] = 3;
|
||||
if (boost::dynamic_pointer_cast<Track> (route)) {
|
||||
boost::shared_ptr<MidiTrack> mt = boost::dynamic_pointer_cast<MidiTrack> (route);
|
||||
|
||||
if (route->record_enabled()) {
|
||||
if (_session->record_status() == Session::Recording) {
|
||||
(*i)[_columns.rec_state] = 1;
|
||||
} else {
|
||||
(*i)[_columns.rec_state] = 0;
|
||||
(*i)[_columns.rec_state] = 2;
|
||||
}
|
||||
|
||||
(*i)[_columns.name_editable] = !route->record_enabled ();
|
||||
} else if (mt && mt->step_editing()) {
|
||||
(*i)[_columns.rec_state] = 3;
|
||||
} else {
|
||||
(*i)[_columns.rec_state] = 0;
|
||||
}
|
||||
|
||||
(*i)[_columns.name_editable] = !route->record_enabled ();
|
||||
}
|
||||
}
|
||||
|
||||
return false; // do not call again (until needed)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user