<table><tr><td style="">sitter created this revision.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />Herald added a reviewer: jgrulich.<br />sitter requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23125">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>a slave may be mapped to a master by either the uuid of the master OR<br />
the connection name of the master.</p>
<p>determine our current connection name and if it is the one referenced by<br />
the slave we consider ourselves master of that slave.<br />
since we do not have access to the connection name inside the bridgewidget<br />
I'm opting to pop it out of connection list on-demand. it may be<br />
more efficient to get it passed in by the parent widget (which I think<br />
knows the name). I am not sure if there may be pitfalls with considering<br />
the name static though.</p>
<p>also partially unpack the if condition so it's a bit easier on the eyes<br />
with the newly added complexity</p></div></div><br /><div><strong>TEST PLAN</strong><div><div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">nmcli c add type bridge ifname br0 autoconnect yes con-name br0 stp off
nmcli c add type bridge-slave autoconnect yes con-name enp4s0 ifname enp4s0 master br0</pre></div>
<p>kcm correctly shows enp4s0 as slave of br0</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R116 Plasma Network Management Applet</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23125">https://phabricator.kde.org/D23125</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>libs/editor/settings/bridgewidget.cpp</div></div></div><br /><div><strong>To: </strong>sitter, jgrulich<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>