MGR: cancel single-project message filtering if we lose connection or select a different host

svn path=/trunk/boinc/; revision=15560
This commit is contained in:
Charlie Fenton 2008-07-08 13:13:20 +00:00
parent 2d193f918f
commit 75bd883fcb
1 changed files with 6 additions and 0 deletions

View File

@ -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);