push2 gui catches port registrations
This commit is contained in:
parent
4a159b817f
commit
e71809dc04
|
@ -145,7 +145,8 @@ P2GUI::P2GUI (Push2& p)
|
|||
|
||||
/* catch future changes to connection state */
|
||||
|
||||
// p2.ConnectionChange.connect (connection_change_connection, invalidator (*this), boost::bind (&P2GUI::connection_handler, this), gui_context());
|
||||
ARDOUR::AudioEngine::instance()->PortRegisteredOrUnregistered.connect (port_reg_connection, invalidator (*this), boost::bind (&P2GUI::connection_handler, this), gui_context());
|
||||
p2.ConnectionChange.connect (connection_change_connection, invalidator (*this), boost::bind (&P2GUI::connection_handler, this), gui_context());
|
||||
}
|
||||
|
||||
P2GUI::~P2GUI ()
|
||||
|
|
|
@ -62,6 +62,7 @@ private:
|
|||
void update_port_combos ();
|
||||
PBD::ScopedConnection connection_change_connection;
|
||||
void connection_handler ();
|
||||
PBD::ScopedConnection port_reg_connection;
|
||||
|
||||
struct MidiPortColumns : public Gtk::TreeModel::ColumnRecord {
|
||||
MidiPortColumns() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user