mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Some more work on making dialogs close when escape is pressed. Also make sure dialog modality is ended properly so that they can be closed on OSX.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7352 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -159,7 +159,7 @@ void WiimoteConfigPage::RevertSource()
|
||||
g_wiimote_sources[m_index] = orig_source;
|
||||
}
|
||||
|
||||
void WiimoteConfigDiag::Save(wxCommandEvent&)
|
||||
void WiimoteConfigDiag::Save(wxCommandEvent& event)
|
||||
{
|
||||
std::string ini_filename = File::GetUserPath(D_CONFIG_IDX) + WIIMOTE_INI_NAME ".ini";
|
||||
|
||||
@ -179,13 +179,13 @@ void WiimoteConfigDiag::Save(wxCommandEvent&)
|
||||
|
||||
inifile.Save(ini_filename);
|
||||
|
||||
Close();
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
void WiimoteConfigDiag::Cancel(wxCommandEvent&)
|
||||
void WiimoteConfigDiag::Cancel(wxCommandEvent& event)
|
||||
{
|
||||
for (size_t p = 0; p < m_pad_notebook->GetPageCount(); ++p)
|
||||
((WiimoteConfigPage*)m_pad_notebook->GetPage(p))->RevertSource();
|
||||
|
||||
Close();
|
||||
event.Skip();
|
||||
}
|
||||
|
Reference in New Issue
Block a user