MGR: after GUI RPC sets NOTICES::complete, only NoticeListCtrl clears it; fix compile warning

svn path=/trunk/boinc/; revision=21855
This commit is contained in:
Charlie Fenton 2010-06-30 23:42:34 +00:00
parent 6906c46383
commit d9299e0154
3 changed files with 11 additions and 3 deletions

View File

@ -4914,3 +4914,12 @@ Charlie 30 Jun 2010
clientgui/
MainDocument.cpp, .h
Charlie 30 Jun 2010
- MGR: after GUI RPC sets NOTICES::complete, only NoticeListCtrl clears it.
- MGR: fix compile warning.
clientgui/
NoticeListCtrl.cpp
lib/
gui_rpc_client_ops.cpp

View File

@ -561,10 +561,11 @@ bool CNoticeListCtrl::UpdateUI()
if (pDoc->GetNoticeCount() < 0) return true;
if (
(GetItemCount() != pDoc->GetNoticeCount()) ||
((int)GetItemCount() != pDoc->GetNoticeCount()) ||
pDoc->notices.complete
) {
SetItemCount(pDoc->GetNoticeCount());
pDoc->notices.complete = false;
}
return true;
}

View File

@ -2353,8 +2353,6 @@ static int parse_notices(MIOFILE& fin, NOTICES& notices) {
bool is_tag;
int retval;
notices.complete = false;
while (!xp.get(tag, sizeof(tag), is_tag)) {
if (!is_tag) continue;
if (!strcmp(tag, "notice")) {