diff --git a/Source/Core/DolphinWX/Src/FrameAui.cpp b/Source/Core/DolphinWX/Src/FrameAui.cpp index 45f0389177..42c5bfcd8d 100644 --- a/Source/Core/DolphinWX/Src/FrameAui.cpp +++ b/Source/Core/DolphinWX/Src/FrameAui.cpp @@ -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(); } }