gui: Only consider nodes on the same canvas when doing 'Select WLAN

members'.
This commit is contained in:
tgoff0 2015-01-30 02:46:18 +00:00
parent c15d344e1f
commit 69d8ba0002

View file

@ -132,9 +132,12 @@ proc updateRangeCircles { wlan range } {
}
proc linkSelectedNodes { wlan nodes } {
set canvas [getNodeCanvas $wlan]
foreach node $nodes {
if { $wlan == $node } { continue } ;# don't link to self
if { [ifcByPeer $wlan $node] != "" } { continue } ;# already linked
if { [getNodeCanvas $node] != $canvas } { continue }; # on a different canvas
newGUILink $wlan $node
}
}