Wiimote: Fixed slight oversight in the last commit

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2086 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson 2009-02-03 09:39:35 +00:00
parent f3e5f06def
commit 1ead45ca04

View file

@ -170,8 +170,15 @@ void ConfigDialog::CloseClick(wxCommandEvent& event)
switch(event.GetId())
{
case ID_CLOSE:
WiiMoteReal::g_Shutdown = true;
m_ShutDownTimer->Start(10);
if(!g_EmulatorRunning)
{
WiiMoteReal::g_Shutdown = true;
m_ShutDownTimer->Start(10);
}
else
{
Close();
}
break;
case ID_APPLY:
SaveFile();