MGR: When connecting to a different host, delete all old messages in message pane (from previously connected client) before getting new messages

svn path=/trunk/boinc/; revision=14791
This commit is contained in:
Charlie Fenton 2008-02-25 23:56:51 +00:00
parent 4937c0dcf1
commit dc514b556a
3 changed files with 13 additions and 2 deletions

View File

@ -1626,3 +1626,12 @@ Rom Feb 25 2008
clientgui/
AdvancedFrame.cpp
Charlie Feb 25 2008
- MGR: When connecting to a different host, delete all old messages in
message pane (from previously connected client) before getting new
messages.
clientgui/
sg_DlgMessages.cpp
ViewMessages.cpp

View File

@ -247,7 +247,8 @@ void CViewMessages::OnListRender (wxTimerEvent& event) {
m_pMessageInfoAttr->SetTextColour(wxColour(128, 128, 128));
m_pMessageErrorAttr->SetTextColour(wxColour(255, 128, 128));
}
// Force an update
// Force a complete update
m_pListPane->DeleteAllItems();
m_pListPane->SetItemCount(iDocCount);
}

View File

@ -368,7 +368,8 @@ void CPanelMessages::OnRefresh(wxTimerEvent& event) {
m_pMessageInfoAttr->SetTextColour(wxColour(128, 128, 128));
m_pMessageErrorAttr->SetTextColour(wxColour(255, 128, 128));
}
// Force an update
// Force a complete update
m_pList->DeleteAllItems();
m_pList->SetItemCount(iDocCount);
}