summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-04-05 20:08:37 +0000
committerCarl Hetherington <carl@carlh.net>2010-04-05 20:08:37 +0000
commit3ff2396b4acf00dc8a092de5c5d5c2a8465efdad (patch)
tree9f9e8f0e5e9bfb3a1ceadadf7c6ba441a40d35f1 /gtk2_ardour/route_ui.cc
parentad5bcfaa0bde60a12d5a1a7512bfcb9479e69829 (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.cc16
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;
}