- bug fix for the above

svn path=/trunk/boinc/; revision=22544
This commit is contained in:
David Anderson 2010-10-17 18:02:40 +00:00
parent 575718e420
commit 612362d6dc
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -279,14 +279,21 @@ void NOTICES::clear_keep() {
void NOTICES::unkeep(const char* url) {
deque<NOTICE>::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) {