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);
break;
}
+ signal_key_press_event().connect (sigc::mem_fun (_port_matrix, &PortMatrix::key_press));
+
add (_port_matrix);
_port_matrix.show ();
}
GlobalPortMatrixWindow::set_session (Session* s)
{
_port_matrix.set_session (s);
+
+ if (!s) {
+ hide ();
+ }
}
string