mirror of https://github.com/BOINC/boinc.git
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:
parent
6906c46383
commit
d9299e0154
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue