aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/crashdump_viewer_wx.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-11-20 10:01:16 +0100
committerDan Gudmundsson <[email protected]>2014-01-27 16:13:57 +0100
commit2694299fe15c0553101d2107f6689975d16525dc (patch)
tree8e48fab25f8c07973dd144f4430f81f3667fcc5a /lib/observer/src/crashdump_viewer_wx.erl
parent5a30dd40a691d610def7b1f00cf39ed0d78eb900 (diff)
downloadotp-2694299fe15c0553101d2107f6689975d16525dc.tar.gz
otp-2694299fe15c0553101d2107f6689975d16525dc.tar.bz2
otp-2694299fe15c0553101d2107f6689975d16525dc.zip
observer: improve wx version of crashdump_viewer
* bugfixes * add first test * remove unused code
Diffstat (limited to 'lib/observer/src/crashdump_viewer_wx.erl')
-rw-r--r--lib/observer/src/crashdump_viewer_wx.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/observer/src/crashdump_viewer_wx.erl b/lib/observer/src/crashdump_viewer_wx.erl
index 17e43838d6..3464dfafae 100644
--- a/lib/observer/src/crashdump_viewer_wx.erl
+++ b/lib/observer/src/crashdump_viewer_wx.erl
@@ -122,7 +122,6 @@ init(File0) ->
wxNotebook:connect(Notebook, command_notebook_page_changing),
wxFrame:connect(Frame, close_window, [{skip, true}]),
wxMenu:connect(Frame, command_menu_selected),
- wxFrame:show(Frame),
case load_dump(Frame,File0) of
{ok,File} ->
@@ -149,7 +148,7 @@ init(File0) ->
ignore
end.
-setup(#state{frame=Frame, notebook=Notebook, main_panel=Panel}=State) ->
+setup(#state{frame=Frame, notebook=Notebook}=State) ->
%% Setup Menubar & Menus
MenuBar = wxMenuBar:new(),
@@ -190,8 +189,8 @@ setup(#state{frame=Frame, notebook=Notebook, main_panel=Panel}=State) ->
%% Memory Panel
IntPanel = add_page(Notebook, ?INT_STR, cdv_multi_panel, cdv_int_tab_wx),
- %% Force redraw (window needs it)
- wxWindow:refresh(Panel),
+ %% Show the window
+ wxFrame:show(Frame),
GenPid = wx_object:get_pid(GenPanel),
GenPid ! active,