mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-19 00:31:39 +00:00
GUI: Small change
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4082 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
97ea0362af
commit
e15de53f15
2 changed files with 7 additions and 9 deletions
|
@ -327,15 +327,13 @@ void CCodeWindow::OnChangeFont(wxCommandEvent& event)
|
|||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||
wxWindow * CCodeWindow::GetNootebookPage(wxString Name)
|
||||
{
|
||||
if (!Parent->m_NB[0] || !Parent->m_NB[1]) return NULL;
|
||||
|
||||
for(u32 i = 0; i <= Parent->m_NB[0]->GetPageCount(); i++)
|
||||
for (int i = 0; i < Parent->m_NB.size(); i++)
|
||||
{
|
||||
if (Parent->m_NB[0]->GetPageText(i).IsSameAs(Name)) return Parent->m_NB[0]->GetPage(i);
|
||||
}
|
||||
for(u32 i = 0; i <= Parent->m_NB[1]->GetPageCount(); i++)
|
||||
{
|
||||
if (Parent->m_NB[1]->GetPageText(i).IsSameAs(Name)) return Parent->m_NB[1]->GetPage(i);
|
||||
if (!Parent->m_NB[i]) return NULL;
|
||||
for(u32 j = 0; j <= Parent->m_NB[j]->GetPageCount(); j++)
|
||||
{
|
||||
if (Parent->m_NB[i]->GetPageText(j).IsSameAs(Name)) return Parent->m_NB[i]->GetPage(j);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue