mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
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:
@ -623,11 +623,14 @@ void DllConfig(HWND _hParent)
|
|||||||
|
|
||||||
// Show wxDialog
|
// Show wxDialog
|
||||||
#if defined(HAVE_WX) && HAVE_WX
|
#if defined(HAVE_WX) && HAVE_WX
|
||||||
|
if (!m_ConfigFrame)
|
||||||
|
{
|
||||||
m_ConfigFrame = new PADConfigDialogSimple(GetParentedWxWindow(_hParent));
|
m_ConfigFrame = new PADConfigDialogSimple(GetParentedWxWindow(_hParent));
|
||||||
m_ConfigFrame->ShowModal();
|
m_ConfigFrame->ShowModal();
|
||||||
m_ConfigFrame->Destroy();
|
m_ConfigFrame->Destroy();
|
||||||
delete m_ConfigFrame;
|
delete m_ConfigFrame;
|
||||||
m_ConfigFrame = NULL;
|
m_ConfigFrame = NULL;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Save configuration
|
// Save configuration
|
||||||
|
@ -181,13 +181,14 @@ void DllConfig(HWND _hParent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_WX) && HAVE_WX
|
#if defined(HAVE_WX) && HAVE_WX
|
||||||
|
if (!m_BasicConfigFrame)
|
||||||
|
{
|
||||||
m_BasicConfigFrame = new WiimoteBasicConfigDialog(GetParentedWxWindow(_hParent));
|
m_BasicConfigFrame = new WiimoteBasicConfigDialog(GetParentedWxWindow(_hParent));
|
||||||
m_BasicConfigFrame->ShowModal();
|
m_BasicConfigFrame->ShowModal();
|
||||||
m_BasicConfigFrame->Destroy();
|
m_BasicConfigFrame->Destroy();
|
||||||
delete m_BasicConfigFrame;
|
delete m_BasicConfigFrame;
|
||||||
m_BasicConfigFrame = NULL;
|
m_BasicConfigFrame = NULL;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user