diff options
author | Hans Bolinder <[email protected]> | 2015-09-30 12:07:23 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2015-10-09 11:37:55 +0200 |
commit | 13c39e40ff18ab1ab5ddeb0a5bde99658e3fab74 (patch) | |
tree | 56012e6690d46fd8c41b0d80de9095c017028bc5 /lib/debugger | |
parent | fb18a3f184ac47b07c801b88b9d166ae52ba757d (diff) | |
download | otp-13c39e40ff18ab1ab5ddeb0a5bde99658e3fab74.tar.gz otp-13c39e40ff18ab1ab5ddeb0a5bde99658e3fab74.tar.bz2 otp-13c39e40ff18ab1ab5ddeb0a5bde99658e3fab74.zip |
Update Debugger
The update was motivated by commit 8ce35b2:
"Take out automatic insertion of 'undefined' from typed record fields".
Diffstat (limited to 'lib/debugger')
-rw-r--r-- | lib/debugger/src/dbg_wx_win.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/debugger/src/dbg_wx_win.erl b/lib/debugger/src/dbg_wx_win.erl index 63f74392b5..1ff8818bbe 100644 --- a/lib/debugger/src/dbg_wx_win.erl +++ b/lib/debugger/src/dbg_wx_win.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2013. All Rights Reserved. +%% Copyright Ericsson AB 2008-2015. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -95,10 +95,9 @@ create_menu_item(Menu, [{Name, _N, cascade, Items}|Is], Win, Id0,Connect) -> false -> Acc end end, - Filter = fun(_,_) -> + Filter = fun(Ev,_) -> Enabled = lists:foldl(IsChecked, [], Butts), - Self ! #wx{userData={Name, Enabled}, - event=#wxCommand{type=command_menu_selected}} + Self ! Ev#wx{userData={Name, Enabled}} end, wxMenu:connect(Win, command_menu_selected, [{id,Id0},{lastId, Id-1},{callback,Filter}]), |