From f97b78255167dfa590d05a6533a4d199dc63b7d9 Mon Sep 17 00:00:00 2001 From: skidau Date: Wed, 30 Dec 2009 08:48:16 +0000 Subject: [PATCH] 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 --- Source/Core/DolphinWX/Src/FrameAui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }