Subscribe to pretty-port name changes (GUI)

This commit is contained in:
Robin Gareus 2021-01-13 19:04:44 +01:00
parent 21e66216be
commit b2c4e71a45
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
13 changed files with 75 additions and 4 deletions

View file

@ -1365,7 +1365,7 @@ private:
PortColumns _port_columns;
Glib::RefPtr<Gtk::ListStore> _store;
PBD::ScopedConnection _engine_connection;
PBD::ScopedConnectionList _engine_connection;
void on_map ()
{
@ -1374,11 +1374,17 @@ private:
invalidator (*this),
boost::bind (&LTCPortSelectOption::update_port_combo, this),
gui_context());
AudioEngine::instance()->PortPrettyNameChanged.connect (
_engine_connection,
invalidator (*this),
boost::bind (&LTCPortSelectOption::update_port_combo, this),
gui_context());
}
void on_unmap ()
{
_engine_connection.disconnect ();
_engine_connection.drop_connections ();
}
void port_changed ()