summaryrefslogtreecommitdiff
path: root/libs/surfaces
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-09-30 11:21:21 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-09-30 11:23:01 -0400
commite71809dc0484b850b32497122ec61b0e10c35117 (patch)
tree47414d624ac7a8bf98d945f5be48d7fd2b39900d /libs/surfaces
parent4a159b817f88218ab3b77d216d4deca252e917d3 (diff)
push2 gui catches port registrations
Diffstat (limited to 'libs/surfaces')
-rw-r--r--libs/surfaces/push2/gui.cc3
-rw-r--r--libs/surfaces/push2/gui.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/libs/surfaces/push2/gui.cc b/libs/surfaces/push2/gui.cc
index 1e8e587a42..13d457d0be 100644
--- a/libs/surfaces/push2/gui.cc
+++ b/libs/surfaces/push2/gui.cc
@@ -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 ()
diff --git a/libs/surfaces/push2/gui.h b/libs/surfaces/push2/gui.h
index 6188703d5c..828765dec6 100644
--- a/libs/surfaces/push2/gui.h
+++ b/libs/surfaces/push2/gui.h
@@ -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() {