Details

a slave may be mapped to a master by either the uuid of the master OR
the connection name of the master.

determine our current connection name and if it is the one referenced by
the slave we consider ourselves master of that slave.
since we do not have access to the connection name inside the bridgewidget
I'm opting to pop it out of connection list on-demand. it may be
more efficient to get it passed in by the parent widget (which I think
knows the name). I am not sure if there may be pitfalls with considering
the name static though.

also partially unpack the if condition so it's a bit easier on the eyes
with the newly added complexity

The parent knows the connection id, if you look into ConnectionEditorBase::initialize(), then you can get the id using

"m_connection->id()"

You can add additional masterId parameter so you don't need to go through the whole connection list to get the id. Also, this same improvement can be done in BondWidget and TeamWidget, where very same code is used (if would be so kind to do so :) )