summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_routes.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-04-21 02:02:13 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:41 -0400
commit5b5e64d860f40c949cf58d75de81fc86914f1baa (patch)
treefcbd51677863e0a0cf5468dde8e489865b93d72a /gtk2_ardour/editor_routes.cc
parent01bba9f91054db7655c8eca42901f7c579b4bd24 (diff)
remove Route::listening_via_monitor()
This is better tested with direct use of the solo_control and Config->get_solo_controls_are_listen_controls()
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r--gtk2_ardour/editor_routes.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc
index 9a2153f99f..7daeea3d7c 100644
--- a/gtk2_ardour/editor_routes.cc
+++ b/gtk2_ardour/editor_routes.cc
@@ -468,15 +468,7 @@ EditorRoutes::on_tv_solo_enable_toggled (std::string const & path_string)
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (tv);
if (rtv != 0) {
- bool newval;
-
- if (Config->get_solo_control_is_listen_control()) {
- newval = !rtv->route()->listening_via_monitor();
- } else {
- newval = !rtv->route()->self_soloed();
- }
-
- rtv->route()->solo_control()->set_value (newval ? 1.0 : 0.0, Controllable::UseGroup);
+ rtv->route()->solo_control()->set_value (rtv->route()->soloed() ? 0.0 : 1.0, Controllable::UseGroup);
}
}