diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-10 13:16:11 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-10 15:27:17 +0200 |
commit | b38aa73df133d54b4667bfedb2968c454930a4cf (patch) | |
tree | 7386a69bff02cc8c1b28c0969759e21dbb71e678 /gtk2_ardour | |
parent | 84465f1ca2d664df20e99c25c1c29938a1848505 (diff) |
fix port-matrix (update with session)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/global_port_matrix.cc | 9 | ||||
-rw-r--r-- | gtk2_ardour/global_port_matrix.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/global_port_matrix.cc b/gtk2_ardour/global_port_matrix.cc index fcd9960e43..8c1fde3082 100644 --- a/gtk2_ardour/global_port_matrix.cc +++ b/gtk2_ardour/global_port_matrix.cc @@ -192,6 +192,15 @@ GlobalPortMatrixWindow::set_session (Session* s) } } +void +GlobalPortMatrix::set_session (Session *s) +{ + SessionHandlePtr::set_session (s); + if (!s) return; + setup_all_ports (); + init(); +} + string GlobalPortMatrix::disassociation_verb () const { diff --git a/gtk2_ardour/global_port_matrix.h b/gtk2_ardour/global_port_matrix.h index 1dabcbd379..d45a639093 100644 --- a/gtk2_ardour/global_port_matrix.h +++ b/gtk2_ardour/global_port_matrix.h @@ -31,6 +31,7 @@ public: GlobalPortMatrix (Gtk::Window*, ARDOUR::Session*, ARDOUR::DataType); void setup_ports (int); + void set_session (ARDOUR::Session* s); void set_state (ARDOUR::BundleChannel c[2], bool); PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const; |