mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
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:
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user