Fix selection on OSX

This commit is contained in:
Josh Faust 2009-11-06 07:40:38 +00:00
parent 5e9d823917
commit b0dafd661e
1 changed files with 5 additions and 0 deletions

View File

@ -556,6 +556,11 @@ void RosoutListControl::postItemChanges()
disable_scroll_to_bottom_ = false;
// OSX has a problem where it unselects whatever was selected after adding items.
#if __WXMAC__
setSelection(selection_);
#endif
Thaw();
// This for some reason prevents the control from flickering: http://wiki.wxwidgets.org/Flicker-Free_Drawing#No-flickering_for_wxListCtrl_with_wxLC_REPORT_.7C_wxLC_VIRTUAL_style