Add solo safe control to editor route list, as per #3063.
[ardour.git] / gtk2_ardour / route_ui.cc
index 99b8b24a4b2c9c7f79c8c7972a2764c0c8e55b1d..284925d06a224bb1a395f8d128f3c7b555710c63 100644 (file)
@@ -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;
        }