summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-12-26 13:04:40 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-12-26 13:04:48 -0500
commit99cfd00e863b250162f1e9c6c66595ae9330d71d (patch)
tree7ed7065f494aa016bf30ee40272ca410c2f4f9a5 /gtk2_ardour
parentc5db19bc52809988bb6a1404dd70709ca7254816 (diff)
remove unnecessary scoping
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_routes.cc29
1 files changed, 14 insertions, 15 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc
index 10b1cc894d..26b6c11b12 100644
--- a/gtk2_ardour/editor_routes.cc
+++ b/gtk2_ardour/editor_routes.cc
@@ -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)
}