From 75bd883fcbd0aff6d6ffa079c760309b400c8bbd Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 8 Jul 2008 13:13:20 +0000 Subject: [PATCH] MGR: cancel single-project message filtering if we lose connection or select a different host svn path=/trunk/boinc/; revision=15560 --- clientgui/ViewMessages.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clientgui/ViewMessages.cpp b/clientgui/ViewMessages.cpp index 34c086e347..2ac24968e2 100644 --- a/clientgui/ViewMessages.cpp +++ b/clientgui/ViewMessages.cpp @@ -290,6 +290,12 @@ wxInt32 CViewMessages::GetDocCount() { int i; m_iTotalDocCount = wxGetApp().GetDocument()->GetMessageCount(); + if (m_iTotalDocCount < m_iPreviousTotalDocCount) { + // Usually due to a disconnect from client + m_bIsFiltered = false; + UpdateSelection(); + } + if (m_bIsFiltered) { for (i = m_iPreviousTotalDocCount; i < m_iTotalDocCount; i++) { MESSAGE* message = wxGetApp().GetDocument()->message(i);