From c15d344e1f405def300d71e03bcfdcb56e4a723d Mon Sep 17 00:00:00 2001 From: tgoff0 Date: Fri, 30 Jan 2015 02:46:14 +0000 Subject: [PATCH] gui: Only consider nodes on the same canvas when doing 'Link to all routers'. --- gui/wlan.tcl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/wlan.tcl b/gui/wlan.tcl index e731614e..2380407a 100644 --- a/gui/wlan.tcl +++ b/gui/wlan.tcl @@ -142,6 +142,8 @@ proc linkSelectedNodes { wlan nodes } { proc linkAllNodes { wlan } { global node_list + set canvas [getNodeCanvas $wlan] + # vars related to the status bar graph set num 0 set num_nodes [llength $node_list] @@ -157,6 +159,7 @@ proc linkAllNodes { wlan } { [expr { ($num % $update_interval) }] == 0 } { update } if { [nodeType $node] != "router" } { continue } if { [ifcByPeer $wlan $node] != "" } { continue } ;# already linked + if { [getNodeCanvas $node] != $canvas } { continue }; # on a different canvas newGUILink $wlan $node } .c config -cursor left_ptr; update