mirror of https://github.com/BOINC/boinc.git
- MGR: Don't display the Simple GUI 'Remove Project' menu item
if it was attached via an account manager. Fixes #261 clientgui/ sg_StatImageLoader.cpp svn path=/trunk/boinc/; revision=17517
This commit is contained in:
parent
db36729f90
commit
43f2e70fdc
|
@ -2784,3 +2784,10 @@ Rom 5 Mar 2009
|
||||||
clientgui/
|
clientgui/
|
||||||
AdvancedFrame.cpp
|
AdvancedFrame.cpp
|
||||||
sg_BoincSimpleGUI.cpp, .h
|
sg_BoincSimpleGUI.cpp, .h
|
||||||
|
|
||||||
|
Rom 5 Mar 2009
|
||||||
|
- MGR: Don't display the Simple GUI 'Remove Project' menu item
|
||||||
|
if it was attached via an account manager. Fixes #261
|
||||||
|
|
||||||
|
clientgui/
|
||||||
|
sg_StatImageLoader.cpp
|
||||||
|
|
|
@ -144,19 +144,20 @@ void StatImageLoader::AddMenuItems()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the 'remove project' option
|
// Add the 'remove project' option
|
||||||
statPopUpMenu->AppendSeparator();
|
if (!project->attached_via_acct_mgr) {
|
||||||
wxMenuItemList menuList = statPopUpMenu->GetMenuItems();
|
statPopUpMenu->AppendSeparator();
|
||||||
|
wxMenuItemList menuList = statPopUpMenu->GetMenuItems();
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
menuList[statPopUpMenu->GetMenuItemCount()-1]->SetBackgroundColour(wxColour("RED"));
|
menuList[statPopUpMenu->GetMenuItemCount()-1]->SetBackgroundColour(wxColour("RED"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
urlItem = new wxMenuItem(statPopUpMenu, WEBSITE_URL_MENU_ID_REMOVE_PROJECT, _("Remove Project"));
|
urlItem = new wxMenuItem(statPopUpMenu, WEBSITE_URL_MENU_ID_REMOVE_PROJECT, _("Remove Project"));
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
urlItem->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
|
urlItem->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
|
||||||
#endif
|
#endif
|
||||||
Connect( WEBSITE_URL_MENU_ID_REMOVE_PROJECT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(StatImageLoader::OnMenuLinkClicked) );
|
Connect( WEBSITE_URL_MENU_ID_REMOVE_PROJECT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(StatImageLoader::OnMenuLinkClicked) );
|
||||||
statPopUpMenu->Append(urlItem);
|
statPopUpMenu->Append(urlItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue