UI: Add editor_mixer route pointer to session so all UIs can know the same current_strip even in a selected group.

This commit is contained in:
Len Ovens
2016-07-03 18:22:09 -07:00
parent 402e9cb20d
commit a373e4cfc8
3 changed files with 20 additions and 16 deletions

View File

@@ -818,6 +818,8 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
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);
@@ -1867,6 +1869,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
boost::shared_ptr<Route> _master_out;
boost::shared_ptr<Route> _monitor_out;
boost::weak_ptr<Route> _editor_mixer;
void auto_connect_master_bus ();

View File

@@ -2617,7 +2617,7 @@ OSC::gui_selection_changed (StripableNotificationListPtr stripables)
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) {