From 69d8ba0002f948d15aa37a12db7f9a4b4a7a3ede Mon Sep 17 00:00:00 2001 From: tgoff0 Date: Fri, 30 Jan 2015 02:46:18 +0000 Subject: [PATCH] gui: Only consider nodes on the same canvas when doing 'Select WLAN members'. --- gui/wlan.tcl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/wlan.tcl b/gui/wlan.tcl index 2380407a..6136f326 100644 --- a/gui/wlan.tcl +++ b/gui/wlan.tcl @@ -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 } }