Another fix for one of the crashes ;) when closing Dolphin

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4753 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
skidau 2009-12-30 08:48:16 +00:00
parent ec790584aa
commit f97b782551
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ void CFrame::DoRemovePage(wxWindow * Win, bool _Hide)
{
GetNotebookFromId(i)->RemovePage(GetNotebookFromId(i)->GetPageIndex(Win));
// Reparent to avoid destruction if the notebook is closed and destroyed
Win->Reparent(this);
if (!Win->IsBeingDeleted()) Win->Reparent(this);
if (_Hide) Win->Hide();
}
}