diff --git a/checkin_notes b/checkin_notes index b89cb6f251..6eea0847cb 100644 --- a/checkin_notes +++ b/checkin_notes @@ -47,3 +47,8 @@ Rom 4 Jan 2010 clientgui/ MainDocument.cpp ViewNotifications.cpp, .h + +David 4 Jan 2010 + - GUI RPC: return notices in order of increasing seqno, not decreasing + client/ + cs_notice.cpp diff --git a/client/cs_notice.cpp b/client/cs_notice.cpp index bc2324a782..6707dc71ec 100644 --- a/client/cs_notice.cpp +++ b/client/cs_notice.cpp @@ -304,7 +304,8 @@ void NOTICES::write_archive(char* url) { fclose(f); } -// write notices newer than seqno as XML (for GUI RPC) +// write notices newer than seqno as XML (for GUI RPC). +// Write them in order of increasing seqno // void NOTICES::write(int seqno, MIOFILE& fout, bool public_only) { unsigned int i; @@ -312,6 +313,9 @@ void NOTICES::write(int seqno, MIOFILE& fout, bool public_only) { for (i=0; i0; i--) { + NOTICE& n = notices[i-1]; if (public_only && n.is_private) continue; n.write(fout, true); }