Merge pull request #2509 from comex/fix-ar-codes

Fix subdialogs of the ISO props dialog... sort of
This commit is contained in:
Ryan Houdek 2015-06-08 04:13:16 -04:00
commit 881f6db2ab
1 changed files with 9 additions and 2 deletions

View File

@ -683,6 +683,7 @@ void CISOProperties::OnBannerImageSave(wxCommandEvent& WXUNUSED (event))
{ {
m_Banner->GetBitmap().ConvertToImage().SaveFile(dialog.GetPath()); m_Banner->GetBitmap().ConvertToImage().SaveFile(dialog.GetPath());
} }
Raise();
} }
void CISOProperties::OnRightClickOnTree(wxTreeEvent& event) void CISOProperties::OnRightClickOnTree(wxTreeEvent& event)
@ -1377,12 +1378,15 @@ void CISOProperties::PatchButtonClicked(wxCommandEvent& event)
{ {
CPatchAddEdit dlg(selection, &onFrame, this); CPatchAddEdit dlg(selection, &onFrame, this);
dlg.ShowModal(); dlg.ShowModal();
Raise();
} }
break; break;
case ID_ADDPATCH: case ID_ADDPATCH:
{ {
CPatchAddEdit dlg(-1, &onFrame, this, 1, _("Add Patch")); CPatchAddEdit dlg(-1, &onFrame, this, 1, _("Add Patch"));
if (dlg.ShowModal() == wxID_OK) int res = dlg.ShowModal();
Raise();
if (res == wxID_OK)
{ {
Patches->Append(StrToWxStr(onFrame.back().name)); Patches->Append(StrToWxStr(onFrame.back().name));
Patches->Check((unsigned int)(onFrame.size() - 1), onFrame.back().active); Patches->Check((unsigned int)(onFrame.size() - 1), onFrame.back().active);
@ -1457,12 +1461,15 @@ void CISOProperties::ActionReplayButtonClicked(wxCommandEvent& event)
{ {
CARCodeAddEdit dlg(selection, &arCodes, this); CARCodeAddEdit dlg(selection, &arCodes, this);
dlg.ShowModal(); dlg.ShowModal();
Raise();
} }
break; break;
case ID_ADDCHEAT: case ID_ADDCHEAT:
{ {
CARCodeAddEdit dlg(-1, &arCodes, this, 1, _("Add ActionReplay Code")); CARCodeAddEdit dlg(-1, &arCodes, this, 1, _("Add ActionReplay Code"));
if (dlg.ShowModal() == wxID_OK) int res = dlg.ShowModal();
Raise();
if (res == wxID_OK)
{ {
Cheats->Append(StrToWxStr(arCodes.back().name)); Cheats->Append(StrToWxStr(arCodes.back().name));
Cheats->Check((unsigned int)(arCodes.size() - 1), arCodes.back().active); Cheats->Check((unsigned int)(arCodes.size() - 1), arCodes.back().active);