diff options
author | Siri Hansen <[email protected]> | 2017-01-26 11:20:20 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-01-26 11:20:20 +0100 |
commit | bcb9300382459deea91038f4847ef3fa70137f11 (patch) | |
tree | 954b9fbf642108082684136b32b71b8a8d925103 /lib/observer/src/observer_wx.erl | |
parent | 9153f7a734ddd9ca47b339cb19b8d44ed79ade0f (diff) | |
parent | 15dd52f771314b6eade47314afcd8b3206c694b1 (diff) | |
download | otp-bcb9300382459deea91038f4847ef3fa70137f11.tar.gz otp-bcb9300382459deea91038f4847ef3fa70137f11.tar.bz2 otp-bcb9300382459deea91038f4847ef3fa70137f11.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/observer/src/observer_wx.erl')
-rw-r--r-- | lib/observer/src/observer_wx.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/observer/src/observer_wx.erl b/lib/observer/src/observer_wx.erl index 5732c12006..3031a1f90d 100644 --- a/lib/observer/src/observer_wx.erl +++ b/lib/observer/src/observer_wx.erl @@ -467,10 +467,10 @@ handle_info(_Info, State) -> stop_servers(#state{node=Node, log=LogOn, sys_panel=Sys, pro_panel=Procs, tv_panel=TVs, trace_panel=Trace, app_panel=Apps, perf_panel=Perfs, - allc_panel=Alloc} = _State) -> + allc_panel=Alloc, port_panel=Ports} = _State) -> LogOn andalso rpc:block_call(Node, rb, stop, []), Me = self(), - Tabs = [Sys, Procs, TVs, Trace, Apps, Perfs, Alloc], + Tabs = [Sys, Procs, Ports, TVs, Trace, Apps, Perfs, Alloc], Stop = fun() -> try _ = [wx_object:stop(Panel) || Panel <- Tabs], @@ -580,9 +580,10 @@ get_active_pid(#state{notebook=Notebook, pro_panel=Pro, sys_panel=Sys, pid2panel(Pid, #state{pro_panel=Pro, sys_panel=Sys, tv_panel=Tv, trace_panel=Trace, app_panel=App, - perf_panel=Perf, allc_panel=Alloc}) -> + perf_panel=Perf, allc_panel=Alloc, port_panel=Port}) -> case Pid of Pro -> "Processes"; + Port -> "Ports"; Sys -> "System"; Tv -> "Table Viewer" ; Trace -> ?TRACE_STR; |