diff --git a/clientgui/DlgEventLog.cpp b/clientgui/DlgEventLog.cpp index c67fa13edc..50f08349d8 100644 --- a/clientgui/DlgEventLog.cpp +++ b/clientgui/DlgEventLog.cpp @@ -307,7 +307,7 @@ void CDlgEventLog::OnRefresh( wxTimerEvent& WXUNUSED(event) ) { wxASSERT(m_pList); - wxInt32 iDocCount = wxGetApp().GetDocument()->messages.messages.size(); + wxInt32 iDocCount = wxGetApp().GetDocument()->GetMessageCount(); if (0 >= iDocCount) { m_pList->DeleteAllItems(); } else {