aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-04-17 15:59:18 +0200
committerDan Gudmundsson <[email protected]>2014-04-17 15:59:18 +0200
commita9f3e2531be76b37c5ce13d20300d71fad0a7230 (patch)
tree9e1a2ae3802a76647aaca495bd3ddbf23c2a7e63 /lib/observer
parent8093b972025dfd4f390266fa5288ebb46a516317 (diff)
downloadotp-a9f3e2531be76b37c5ce13d20300d71fad0a7230.tar.gz
otp-a9f3e2531be76b37c5ce13d20300d71fad0a7230.tar.bz2
otp-a9f3e2531be76b37c5ce13d20300d71fad0a7230.zip
observer: Let wx create statusbar
wx can not catch the delete of the status bar if it have not created it, which might cause a crash.
Diffstat (limited to 'lib/observer')
-rw-r--r--lib/observer/src/observer_wx.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/observer/src/observer_wx.erl b/lib/observer/src/observer_wx.erl
index 768dc3b3f7..03ca1bf9c1 100644
--- a/lib/observer/src/observer_wx.erl
+++ b/lib/observer/src/observer_wx.erl
@@ -112,7 +112,8 @@ setup(#state{frame = Frame} = State) ->
observer_lib:create_menus(DefMenus, MenuBar, default),
wxFrame:setMenuBar(Frame, MenuBar),
- StatusBar = wxFrame:createStatusBar(Frame, []),
+ StatusBar = wxStatusBar:new(Frame),
+ wxFrame:setStatusBar(Frame, StatusBar),
wxFrame:setTitle(Frame, atom_to_list(node())),
wxStatusBar:setStatusText(StatusBar, atom_to_list(node())),