Modal dialogs must be closed with EndModal() or all kinds of weird

corruption can happen with wx 2.9.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7092 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-02-06 15:02:26 +00:00
parent 145559424c
commit d93dc23e77
4 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,3 @@
#include "VideoConfigDiag.h"
#include "FileUtil.h"
@ -51,7 +50,7 @@ void SettingChoice::UpdateValue(wxCommandEvent& ev)
void VideoConfigDiag::Event_ClickClose(wxCommandEvent&)
{
Close();
EndModal(wxID_OK);
}
void VideoConfigDiag::Event_Close(wxCloseEvent& ev)

View File

@ -132,7 +132,7 @@ VideoConfigDialog::VideoConfigDialog(wxWindow* parent, const std::string& title,
void VideoConfigDialog::Event_ClickClose(wxCommandEvent&)
{
Close();
EndModal(wxID_OK);
}
void VideoConfigDialog::Event_Close(wxCloseEvent& ev)