mirror of https://github.com/BOINC/boinc.git
- MGR: Prevent crash, check returned pointer of menu entry.
clientgui/ sg_BoincSimpleFrame.cpp svn path=/trunk/boinc/; revision=24640
This commit is contained in:
parent
e6c3a7ee64
commit
3cb2d4c928
|
@ -8607,3 +8607,9 @@ Rom 21 Nov 2011
|
||||||
clientgui/
|
clientgui/
|
||||||
sg_BoincSimpleFrame.cpp
|
sg_BoincSimpleFrame.cpp
|
||||||
sg_TaskPanel.cpp
|
sg_TaskPanel.cpp
|
||||||
|
|
||||||
|
Rom 21 Nov 2011
|
||||||
|
- MGR: Prevent crash, check returned pointer of menu entry.
|
||||||
|
|
||||||
|
clientgui/
|
||||||
|
sg_BoincSimpleFrame.cpp
|
||||||
|
|
|
@ -429,7 +429,9 @@ void CSimpleFrame::OnSelectSkin( wxCommandEvent& event ){
|
||||||
oldSkinID = m_pSubmenuSkins->FindItem(oldSkinName);
|
oldSkinID = m_pSubmenuSkins->FindItem(oldSkinName);
|
||||||
}
|
}
|
||||||
oldItem = m_pSubmenuSkins->FindItem(oldSkinID);
|
oldItem = m_pSubmenuSkins->FindItem(oldSkinID);
|
||||||
|
if (oldItem) {
|
||||||
oldItem->Check(false);
|
oldItem->Check(false);
|
||||||
|
}
|
||||||
|
|
||||||
selectedItem->Check(true);
|
selectedItem->Check(true);
|
||||||
pSkinManager->ReloadSkin(newSkinName);
|
pSkinManager->ReloadSkin(newSkinName);
|
||||||
|
|
Loading…
Reference in New Issue