mirror of https://github.com/BOINC/boinc.git
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:
parent
2d193f918f
commit
75bd883fcb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue