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:
parent
ec790584aa
commit
f97b782551
|
@ -409,7 +409,7 @@ void CFrame::DoRemovePage(wxWindow * Win, bool _Hide)
|
||||||
{
|
{
|
||||||
GetNotebookFromId(i)->RemovePage(GetNotebookFromId(i)->GetPageIndex(Win));
|
GetNotebookFromId(i)->RemovePage(GetNotebookFromId(i)->GetPageIndex(Win));
|
||||||
// Reparent to avoid destruction if the notebook is closed and destroyed
|
// Reparent to avoid destruction if the notebook is closed and destroyed
|
||||||
Win->Reparent(this);
|
if (!Win->IsBeingDeleted()) Win->Reparent(this);
|
||||||
if (_Hide) Win->Hide();
|
if (_Hide) Win->Hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue