- MGR: Prevent crash, check returned pointer of menu entry.

clientgui/
        sg_BoincSimpleFrame.cpp

svn path=/trunk/boinc/; revision=24640
This commit is contained in:
Rom Walton 2011-11-21 17:18:10 +00:00
parent e6c3a7ee64
commit 3cb2d4c928
2 changed files with 9 additions and 1 deletions

View File

@ -8607,3 +8607,9 @@ Rom 21 Nov 2011
clientgui/
sg_BoincSimpleFrame.cpp
sg_TaskPanel.cpp
Rom 21 Nov 2011
- MGR: Prevent crash, check returned pointer of menu entry.
clientgui/
sg_BoincSimpleFrame.cpp

View File

@ -429,7 +429,9 @@ void CSimpleFrame::OnSelectSkin( wxCommandEvent& event ){
oldSkinID = m_pSubmenuSkins->FindItem(oldSkinName);
}
oldItem = m_pSubmenuSkins->FindItem(oldSkinID);
oldItem->Check(false);
if (oldItem) {
oldItem->Check(false);
}
selectedItem->Check(true);
pSkinManager->ReloadSkin(newSkinName);