13
0

fix port-matrix (update with session)

This commit is contained in:
Robin Gareus 2013-07-10 13:16:11 +02:00
parent 84465f1ca2
commit b38aa73df1
2 changed files with 10 additions and 0 deletions

View File

@ -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 string
GlobalPortMatrix::disassociation_verb () const GlobalPortMatrix::disassociation_verb () const
{ {

View File

@ -31,6 +31,7 @@ public:
GlobalPortMatrix (Gtk::Window*, ARDOUR::Session*, ARDOUR::DataType); GlobalPortMatrix (Gtk::Window*, ARDOUR::Session*, ARDOUR::DataType);
void setup_ports (int); void setup_ports (int);
void set_session (ARDOUR::Session* s);
void set_state (ARDOUR::BundleChannel c[2], bool); void set_state (ARDOUR::BundleChannel c[2], bool);
PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const; PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const;