mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
- Fixed port adding/removing/connecting and related bugs with route signal path
- Minor MIDI bug fixes/cleanups git-svn-id: svn://localhost/ardour2/branches/midi@874 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
82232f06ba
commit
5a40162026
16 changed files with 414 additions and 498 deletions
|
|
@ -526,7 +526,9 @@ IOSelector::port_selection_changed (GdkEventButton *ev, TreeView* treeview)
|
|||
if (for_input) {
|
||||
if ((status = io->connect_input (selected_port, other_port_name, this)) == 0) {
|
||||
Port *p = session.engine().get_port_by_name (other_port_name);
|
||||
p->enable_metering();
|
||||
if (p) {
|
||||
p->enable_metering();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
status = io->connect_output (selected_port, other_port_name, this);
|
||||
|
|
@ -664,7 +666,9 @@ IOSelector::connection_button_release (GdkEventButton *ev, TreeView *treeview)
|
|||
|
||||
if (for_input) {
|
||||
Port *p = session.engine().get_port_by_name (connected_port_name);
|
||||
p->disable_metering();
|
||||
if (p) {
|
||||
p->disable_metering();
|
||||
}
|
||||
io->disconnect_input (port, connected_port_name, this);
|
||||
} else {
|
||||
io->disconnect_output (port, connected_port_name, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue