diff options
author | Magnus Henoch <[email protected]> | 2019-04-05 11:53:39 +0100 |
---|---|---|
committer | Magnus Henoch <[email protected]> | 2019-04-05 11:53:39 +0100 |
commit | 88e4d4f3d74decf2bb9e9cd9799c373b068256f2 (patch) | |
tree | 04934f25e78ac58c1a7331d13495fc8437d20ebc /lib | |
parent | 4a78c78fdc5df8e39c48155ac491c1a6d051abe6 (diff) | |
download | otp-88e4d4f3d74decf2bb9e9cd9799c373b068256f2.tar.gz otp-88e4d4f3d74decf2bb9e9cd9799c373b068256f2.tar.bz2 otp-88e4d4f3d74decf2bb9e9cd9799c373b068256f2.zip |
Handle clicking links more than once in Observer's "Expanded term"
When looking at an "expanded term" in Observer, such as the state term
of a supervisor process, all pids are turned into clickable links.
However, without this change, you could only follow one such link; any
further clicks would be ignored. Fix that by ensuring that the
cdv_html_wx process holds on to its state.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/observer/src/cdv_html_wx.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/observer/src/cdv_html_wx.erl b/lib/observer/src/cdv_html_wx.erl index 8956173c93..cd34b4c438 100644 --- a/lib/observer/src/cdv_html_wx.erl +++ b/lib/observer/src/cdv_html_wx.erl @@ -138,7 +138,8 @@ handle_event(#wx{event=#wxHtmlLink{type=command_html_link_clicked, list_to_integer(Key3)}}}, expand(Id,cdv_term_cb,State); _ when App =:= obs -> - observer ! {open_link, Target}; + observer ! {open_link, Target}, + State; _ -> cdv_virtual_list_wx:start_detail_win(Target), State |