X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fsurfaces%2Fpush2%2Fgui.cc;h=13d457d0beab299e2db0dc913c97bac657696f98;hb=df2b0e33b913f842ed9964cce4c870c45cd02b38;hp=1e8e587a42aaf5f1bbe3a5b6eff717b255817be4;hpb=4a159b817f88218ab3b77d216d4deca252e917d3;p=ardour.git 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 ()