aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_port_wx.erl
diff options
context:
space:
mode:
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)