{
SessionHandlePtr::set_session (s);
+ for (ARDOUR::DataType::iterator i = ARDOUR::DataType::begin(); i != ARDOUR::DataType::end(); ++i) {
+ GlobalPortMatrixWindow* w;
+ if ((w = _global_port_matrix[*i]->get()) != 0) {
+ w->set_session (s);
+ }
+ }
+
if (!_session) {
return;
}
void
GlobalPortMatrix::setup_ports (int dim)
{
+ if (!_session) {
+ return;
+ }
+
_ports[dim].suspend_signals ();
_ports[dim].gather (_session, type(), dim == IN, false, show_only_bundles ());
_ports[dim].resume_signals ();
void
GlobalPortMatrix::set_state (BundleChannel c[2], bool s)
{
+ if (!_session) {
+ return;
+ }
+
Bundle::PortList const & in_ports = c[IN].bundle->channel_ports (c[IN].channel);
Bundle::PortList const & out_ports = c[OUT].bundle->channel_ports (c[OUT].channel);
GlobalPortMatrixWindow::set_session (Session* s)
{
_port_matrix.set_session (s);
+
+ if (!s) {
+ hide ();
+ }
}
string