diff --git a/checkin_notes b/checkin_notes index 6eea0847cb..e58e7160ef 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index 8b94dcdf01..f57ffdabca 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.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: diff --git a/lib/gui_rpc_client_ops.cpp b/lib/gui_rpc_client_ops.cpp index 075263e6ee..bf6330b872 100644 --- a/lib/gui_rpc_client_ops.cpp +++ b/lib/gui_rpc_client_ops.cpp @@ -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; }