File 0736-Handle-clicking-links-more-than-once-in-Observer-s-E.patch of Package erlang

From 88e4d4f3d74decf2bb9e9cd9799c373b068256f2 Mon Sep 17 00:00:00 2001
From: Magnus Henoch <magnus.henoch@gmail.com>
Date: Fri, 5 Apr 2019 11:53:39 +0100
Subject: [PATCH] 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.
---
 lib/observer/src/cdv_html_wx.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
-- 
2.16.4

openSUSE Build Service is sponsored by