aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_port_wx.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2016-05-04 14:29:23 +0200
committerSiri Hansen <[email protected]>2016-05-20 09:40:55 +0200
commitddbe6a2d2531abfc7c72b07442a585f2649faedd (patch)
treed0b0dcf134c022ec66eddcbd5f5bcda197a7d4cc /lib/observer/src/observer_port_wx.erl
parente4c25c20f548c068057547ad2095a4c65afc0d86 (diff)
downloadotp-ddbe6a2d2531abfc7c72b07442a585f2649faedd.tar.gz
otp-ddbe6a2d2531abfc7c72b07442a585f2649faedd.tar.bz2
otp-ddbe6a2d2531abfc7c72b07442a585f2649faedd.zip
[observer] Improve appearance in Trace tab
* Only allow single selection of modules * Add right click menu to remove module * Allow multiple selection of nodes, and show procs/ports for ALL selected nodes * On right click, only show menu items that make sense for the current content and selection * Add tooltips with help text
Diffstat (limited to 'lib/observer/src/observer_port_wx.erl')
-rw-r--r--lib/observer/src/observer_port_wx.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/observer/src/observer_port_wx.erl b/lib/observer/src/observer_port_wx.erl
index c8548e176e..3b788642cc 100644
--- a/lib/observer/src/observer_port_wx.erl
+++ b/lib/observer/src/observer_port_wx.erl
@@ -220,7 +220,7 @@ handle_event(#wx{id=?ID_TRACE_NAMES}, #state{grid=Grid, ports=Ports}=State) ->
Selected ->
IdsOrRegs =
[case Port#port.name of
- undefined -> Port#port.id;
+ [] -> Port#port.id;
Name -> Name
end || Port <- Selected],
observer_trace_wx:add_ports(IdsOrRegs)