From db772ab82abb954b6a39af2d062d7e167b89466e Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 16 Nov 2007 09:28:02 +0000 Subject: [PATCH] MGR: Fix bug which showed Snooze task bar icon when it shouldn't. svn path=/trunk/boinc/; revision=14224 --- checkin_notes | 5 +++++ clientgui/BOINCTaskBar.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index d4b6cf439d..9921d4ef11 100644 --- a/checkin_notes +++ b/checkin_notes @@ -11070,3 +11070,8 @@ David 15 Nov 2007 html/user/ forum_index.php team_forum.php + +Charlie 16 Nov 2007 + MGR: Fix bug which showed Snooze task bar icon when it shouldn't. + clientgui/ + BOINCTaskBar.cpp diff --git a/clientgui/BOINCTaskBar.cpp b/clientgui/BOINCTaskBar.cpp index 03bf01692b..f81ac4a694 100644 --- a/clientgui/BOINCTaskBar.cpp +++ b/clientgui/BOINCTaskBar.cpp @@ -146,7 +146,7 @@ void CTaskBarIcon::OnRefresh(wxTimerEvent& WXUNUSED(event)) { if (!pDoc->IsConnected()) { SetIcon(m_iconTaskBarDisconnected, wxEmptyString); } else { - if (status.task_suspend_reason && !(status.task_suspend_reason & SUSPEND_REASON_CPU_USAGE_LIMIT)) { + if (RUN_MODE_NEVER == status.task_mode) { SetIcon(m_iconTaskBarSnooze, wxEmptyString); } else { SetIcon(m_iconTaskBarNormal, wxEmptyString);