diff options
author | Carl Hetherington <carl@carlh.net> | 2010-04-05 20:08:37 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-04-05 20:08:37 +0000 |
commit | 3ff2396b4acf00dc8a092de5c5d5c2a8465efdad (patch) | |
tree | 9f9e8f0e5e9bfb3a1ceadadf7c6ba441a40d35f1 /gtk2_ardour/route_ui.cc | |
parent | ad5bcfaa0bde60a12d5a1a7512bfcb9479e69829 (diff) |
Add solo safe control to editor route list, as per #3063.
git-svn-id: svn://localhost/ardour2/branches/3.0@6861 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r-- | gtk2_ardour/route_ui.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index 99b8b24a4b..284925d06a 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -766,7 +766,21 @@ RouteUI::solo_isolate_visual_state (boost::shared_ptr<Route> r) } if (r->solo_isolated()) { - return 1; + return 1; + } else { + return 0; + } +} + +int +RouteUI::solo_safe_visual_state (boost::shared_ptr<Route> r) +{ + if (r->is_master() || r->is_monitor()) { + return 0; + } + + if (r->solo_safe()) { + return 1; } else { return 0; } |