From 612362d6dc1ae01b7001b283882e1bacdfa75708 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 17 Oct 2010 18:02:40 +0000 Subject: [PATCH] - bug fix for the above svn path=/trunk/boinc/; revision=22544 --- checkin_notes | 6 ++++++ client/cs_notice.cpp | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/checkin_notes b/checkin_notes index 30900146f3..99abe54a18 100644 --- a/checkin_notes +++ b/checkin_notes @@ -7415,3 +7415,9 @@ David 16 Oct 2010 client/ cs_notice.cpp,h sim.cpp + +David 16 Oct 2010 + - bug fix for the above + + client/ + cs_notice.cpp diff --git a/client/cs_notice.cpp b/client/cs_notice.cpp index 88d727f632..2c3b8cc034 100644 --- a/client/cs_notice.cpp +++ b/client/cs_notice.cpp @@ -279,14 +279,21 @@ void NOTICES::clear_keep() { void NOTICES::unkeep(const char* url) { deque::iterator i = notices.begin(); + bool removed_something = false; while (i != notices.end()) { NOTICE& n = *i; if (!strcmp(url, n.feed_url) && !n.keep) { i = notices.erase(i); + removed_something = true; } else { i++; } } +#ifndef SIM + if (removed_something) { + gstate.gui_rpcs.set_notice_refresh(); + } +#endif } static inline bool same_guid(NOTICE& n1, NOTICE& n2) {