From 1f744442b7c42090fc491fd31563aed82d43e0f2 Mon Sep 17 00:00:00 2001 From: "tgoff0@gmail.com" 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'. --- trunk/gui/wlan.tcl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/gui/wlan.tcl b/trunk/gui/wlan.tcl index e731614e..2380407a 100644 --- a/trunk/gui/wlan.tcl +++ b/trunk/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