From ca782798ed7c776d4bdffb75572812c44221fe03 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 20 Dec 2007 02:05:18 +0000 Subject: [PATCH] Mac: Use generic wxListCtrl to fix bug in wx2.8.7 RefreshItem() svn path=/trunk/boinc/; revision=14420 --- clientgui/BOINCGUIApp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index b760e4dbef..1533c81ede 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -206,6 +206,12 @@ bool CBOINCGUIApp::OnInit() { #ifdef __WXMAC__ +#if wxCHECK_VERSION(2,8,0) +// In wxMac-2.8.7, default wxListCtrl::RefreshItem() does not work +// so use traditional generic implementation. + wxSystemOptions::SetOption(wxT("mac.listctrl.always_use_generic"), 1); +#endif + wxString strDirectory = wxEmptyString; bool success;