MGR: Fix crash bug when using Mac accessibility with Event Log

svn path=/trunk/boinc/; revision=20983
This commit is contained in:
Charlie Fenton 2010-03-22 23:58:17 +00:00
parent a8da18d466
commit d16064c0cc
3 changed files with 14 additions and 4 deletions

View File

@ -2032,3 +2032,9 @@ David 22 Mar 2010
sched/
sched_shmem.cpp,h
feeder.cpp
Charlie 22 Mar 2010
- MGR: Fix crash bug when using Mac accessibility with Event Log.
clientgui/
DlgEventLogListCtrl.cpp, .h

View File

@ -33,9 +33,9 @@
#include "DlgEventLog.h"
IMPLEMENT_DYNAMIC_CLASS(CDlgEventLogListCtrl, wxListView)
IMPLEMENT_DYNAMIC_CLASS(CDlgEventLogListCtrl, DLG_LISTCTRL_BASE)
BEGIN_EVENT_TABLE(CDlgEventLogListCtrl, wxListView)
BEGIN_EVENT_TABLE(CDlgEventLogListCtrl, DLG_LISTCTRL_BASE)
EVT_LEFT_UP(CDlgEventLogListCtrl::OnMouseUp)
END_EVENT_TABLE()
@ -43,7 +43,7 @@ END_EVENT_TABLE()
CDlgEventLogListCtrl::CDlgEventLogListCtrl() {}
CDlgEventLogListCtrl::CDlgEventLogListCtrl(CDlgEventLog* pView, wxWindowID iListWindowID, wxInt32 iListWindowFlags)
: wxListView(pView, iListWindowID, wxDefaultPosition, wxSize(640,480), iListWindowFlags)
: DLG_LISTCTRL_BASE(pView, iListWindowID, wxDefaultPosition, wxSize(640,480), iListWindowFlags)
{
m_pParentView = pView;

View File

@ -24,11 +24,15 @@
#ifdef __WXMAC__
#include "macAccessiblity.h"
#define DLG_LISTCTRL_BASE wxGenericListCtrl
#else
#define DLG_LISTCTRL_BASE wxListView
#endif
class CDlgEventLog;
class CDlgEventLogListCtrl : public wxListView
class CDlgEventLogListCtrl : public DLG_LISTCTRL_BASE
{
DECLARE_DYNAMIC_CLASS(CDlgEventLogListCtrl)
DECLARE_EVENT_TABLE()