- MGR: Mark all notices as having been read if either Simple GUI messages dialog or Advanced GUI Notices tab is open

svn path=/trunk/boinc/; revision=22026
This commit is contained in:
Charlie Fenton 2010-07-22 00:53:41 +00:00
parent 9c68d40d78
commit c8a3532c41
2 changed files with 10 additions and 2 deletions

View File

@ -5008,6 +5008,7 @@ David 9 Jul 2010
client_state.cpp,h
work_fetch.cpp
pers_file_xfer.h
Charlie 9 Jul 2010
- MGR: Fix accessibility code bug in Attach Wizard's ProjectListCtrl,
consolidate and clean up Mac accessibility code.
@ -5390,3 +5391,10 @@ David 21 Jul 2010
main.cpp,h
clientgui/
NoticeListCtrl.cpp
Charlie 21 Jul 2010
- MGR: Mark all notices as having been read if either Simple GUI
messages dialog or Advanced GUI Notices tab is open.
clientgui/
MainDocument.cpp

View File

@ -1823,7 +1823,7 @@ int CMainDocument::CachedNoticeUpdate() {
int currentTabView = pFrame->GetCurrentViewPage();
// Consider all notices as having been read if Notices tab is open
if ((currentTabView & VW_NOTIF) && wxGetApp().IsActive()) {
if ((currentTabView & (VW_NOTIF | VW_SMSG)) && wxGetApp().IsActive()) {
if (m_iLastReadNoticeSequenceNumber != m_iNoticeSequenceNumber) {
m_iLastReadNoticeSequenceNumber = m_iNoticeSequenceNumber;
m_iLastReadNoticeArrivalTime = notices.notices[0]->arrival_time;