mirror of https://github.com/BOINC/boinc.git
- bug fix for the above
svn path=/trunk/boinc/; revision=22544
This commit is contained in:
parent
575718e420
commit
612362d6dc
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue