From aed031d7d22e6d8104ace92ad1c9fb31ad710fee Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 22 Nov 2006 18:42:22 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11565 --- clientgui/BOINCTaskBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientgui/BOINCTaskBar.cpp b/clientgui/BOINCTaskBar.cpp index 07ef2cfb3f..d2c386f291 100644 --- a/clientgui/BOINCTaskBar.cpp +++ b/clientgui/BOINCTaskBar.cpp @@ -572,7 +572,6 @@ wxMenu *CTaskBarIcon::BuildContextMenu() { wxMenu* pMenu = new wxMenu; wxString menuName = wxEmptyString; ACCT_MGR_INFO ami; - bool is_acct_mgr_detected = false; wxASSERT(pMenu); wxASSERT(pDoc); @@ -647,8 +646,9 @@ void CTaskBarIcon::AdjustMenuItems(wxMenu* pMenu) { // If a dialog is detected, we cannot allow the "Exit" menu item to be // enabled. So lets search for the dialog by ID since all of BOINC // Manager's dialog IDs are 10000. - if (wxDynamicCast(wxWindow::FindWindowById(ID_ANYDIALOG), wxDialog)) + if (wxDynamicCast(wxWindow::FindWindowById(ID_ANYDIALOG), wxDialog)) { is_dialog_detected = true; + } for (loc = 0; loc < pMenu->GetMenuItemCount(); loc++) { pMenuItem = pMenu->FindItemByPosition(loc);