return;
}
- Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-mixer"));
-
- if (act) {
- Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act);
- if (!tact || !tact->get_active()) {
- /* not showing mixer strip presently */
- return;
- }
- }
-
- if (current_mixer_strip == 0) {
- create_editor_mixer ();
- }
-
-
// if this is an automation track, then we shold the mixer strip should
// show the parent
}
}
+ _session->set_editor_mixer (route);
+
+ Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-mixer"));
+
+ if (act) {
+ Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act);
+ if (!tact || !tact->get_active()) {
+ /* not showing mixer strip presently */
+ return;
+ }
+ }
+
+ if (current_mixer_strip == 0) {
+ create_editor_mixer ();
+ }
+
if (current_mixer_strip->route() == route) {
return;
}
boost::shared_ptr<Route> monitor_out() const { return _monitor_out; }
boost::shared_ptr<Route> master_out() const { return _master_out; }
+ boost::weak_ptr<Route> get_editor_mixer() const { return _editor_mixer; }
+ void set_editor_mixer (boost::weak_ptr<Route> r) { _editor_mixer = r; }
void globally_add_internal_sends (boost::shared_ptr<Route> dest, Placement p, bool);
void globally_set_send_gains_from_track (boost::shared_ptr<Route> dest);
boost::shared_ptr<Route> _master_out;
boost::shared_ptr<Route> _monitor_out;
+ boost::weak_ptr<Route> _editor_mixer;
void auto_connect_master_bus ();
boost::shared_ptr<Stripable> strip;
if (!stripables->empty()) {
- strip = stripables->front().lock();
+ strip = boost::dynamic_pointer_cast<Stripable>(session->get_editor_mixer().lock());
}
if (strip) {
for (uint32_t it = 0; it < _surface.size(); ++it) {