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
1 changed files with 9 additions and 2 deletions

View File

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