aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_tv_table.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2012-12-21 14:14:11 +0100
committerDan Gudmundsson <[email protected]>2013-01-09 11:44:30 +0100
commit4400ec08aaa4c30272f502b5d8450dafec30f5dc (patch)
tree25e8a986294a7cc1d6793a68aaf3af5522b7a804 /lib/observer/src/observer_tv_table.erl
parent60f0eeddd23306efa3d5993c320b31e7ce942464 (diff)
downloadotp-4400ec08aaa4c30272f502b5d8450dafec30f5dc.tar.gz
otp-4400ec08aaa4c30272f502b5d8450dafec30f5dc.tar.bz2
otp-4400ec08aaa4c30272f502b5d8450dafec30f5dc.zip
wx: Workaround wx-2.9 bugs
Menuhandling in 2.9 is (currently) buggy on mac, this avoids a crash in menu handling but causes a lot unusable menus.
Diffstat (limited to 'lib/observer/src/observer_tv_table.erl')
-rw-r--r--lib/observer/src/observer_tv_table.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/observer/src/observer_tv_table.erl b/lib/observer/src/observer_tv_table.erl
index c41f0f006a..5d1ab2e946 100644
--- a/lib/observer/src/observer_tv_table.erl
+++ b/lib/observer/src/observer_tv_table.erl
@@ -403,7 +403,7 @@ handle_info({new_cols, New}, State = #state{grid=Grid, columns=Cols0}) ->
{noreply, State#state{columns=Cols}};
handle_info({refresh, Min, Max}, State = #state{grid=Grid}) ->
- wxListCtrl:refreshItems(Grid, Min, Max),
+ Max > 0 andalso wxListCtrl:refreshItems(Grid, Min, Max),
{noreply, State};
handle_info(refresh_interval, State = #state{pid=Pid}) ->