- MGR: Present the newest notices first.

clientgui/
        MainDocument.cpp
    lib/
        gui_rpc_client_ops.cpp

svn path=/trunk/boinc/; revision=20073
This commit is contained in:
Rom Walton 2010-01-05 02:21:33 +00:00
parent bd93c0dde2
commit 2154d27fe9
3 changed files with 10 additions and 6 deletions

View File

@ -52,3 +52,11 @@ David 4 Jan 2010
- GUI RPC: return notices in order of increasing seqno, not decreasing - GUI RPC: return notices in order of increasing seqno, not decreasing
client/ client/
cs_notice.cpp cs_notice.cpp
Rom 4 Jan 2010
- MGR: Present the newest notices first.
clientgui/
MainDocument.cpp
lib/
gui_rpc_client_ops.cpp

View File

@ -1818,11 +1818,7 @@ int CMainDocument::CachedNoticeUpdate() {
goto done; goto done;
} }
if (notices.notices.size() != 0) { if (notices.notices.size() != 0) {
for (unsigned int i = 0; i < notices.notices.size(); i++) { m_iNoticeSequenceNumber = notices.notices[0]->seqno;
if (notices.notices[i]->seqno > m_iNoticeSequenceNumber) {
m_iNoticeSequenceNumber = notices.notices[i]->seqno;
}
}
} }
} }
done: done:

View File

@ -2310,7 +2310,7 @@ static int parse_notices(MIOFILE& fin, NOTICES& notices) {
NOTICE* np = new NOTICE(); NOTICE* np = new NOTICE();
retval = np->parse(xp); retval = np->parse(xp);
if (!retval) { if (!retval) {
notices.notices.push_back(np); notices.notices.insert(notices.notices.begin(), np);
} else { } else {
delete np; delete np;
} }