Make sure configuration can only be opened once
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4949 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
afb82b1d8c
commit
225d691bcc
|
@ -623,11 +623,14 @@ void DllConfig(HWND _hParent)
|
|||
|
||||
// Show wxDialog
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
if (!m_ConfigFrame)
|
||||
{
|
||||
m_ConfigFrame = new PADConfigDialogSimple(GetParentedWxWindow(_hParent));
|
||||
m_ConfigFrame->ShowModal();
|
||||
m_ConfigFrame->Destroy();
|
||||
delete m_ConfigFrame;
|
||||
m_ConfigFrame = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Save configuration
|
||||
|
|
|
@ -181,13 +181,14 @@ void DllConfig(HWND _hParent)
|
|||
}
|
||||
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
|
||||
if (!m_BasicConfigFrame)
|
||||
{
|
||||
m_BasicConfigFrame = new WiimoteBasicConfigDialog(GetParentedWxWindow(_hParent));
|
||||
m_BasicConfigFrame->ShowModal();
|
||||
m_BasicConfigFrame->Destroy();
|
||||
delete m_BasicConfigFrame;
|
||||
m_BasicConfigFrame = NULL;
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue