mirror of https://github.com/BOINC/boinc.git
- 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:
parent
bd93c0dde2
commit
2154d27fe9
|
@ -52,3 +52,11 @@ David 4 Jan 2010
|
|||
- GUI RPC: return notices in order of increasing seqno, not decreasing
|
||||
client/
|
||||
cs_notice.cpp
|
||||
|
||||
Rom 4 Jan 2010
|
||||
- MGR: Present the newest notices first.
|
||||
|
||||
clientgui/
|
||||
MainDocument.cpp
|
||||
lib/
|
||||
gui_rpc_client_ops.cpp
|
||||
|
|
|
@ -1818,11 +1818,7 @@ int CMainDocument::CachedNoticeUpdate() {
|
|||
goto done;
|
||||
}
|
||||
if (notices.notices.size() != 0) {
|
||||
for (unsigned int i = 0; i < notices.notices.size(); i++) {
|
||||
if (notices.notices[i]->seqno > m_iNoticeSequenceNumber) {
|
||||
m_iNoticeSequenceNumber = notices.notices[i]->seqno;
|
||||
}
|
||||
}
|
||||
m_iNoticeSequenceNumber = notices.notices[0]->seqno;
|
||||
}
|
||||
}
|
||||
done:
|
||||
|
|
|
@ -2310,7 +2310,7 @@ static int parse_notices(MIOFILE& fin, NOTICES& notices) {
|
|||
NOTICE* np = new NOTICE();
|
||||
retval = np->parse(xp);
|
||||
if (!retval) {
|
||||
notices.notices.push_back(np);
|
||||
notices.notices.insert(notices.notices.begin(), np);
|
||||
} else {
|
||||
delete np;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue