mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-17 12:58:55 +02: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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user