mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Create wxWindow in heap rather than stack
Center DX9 window Bring Wiimote reconnect confirm dialog to topmost, now only works with OpenGL. (It seems DX9 in full screen doesn't like other windows overlapped upon it.) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4895 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -698,14 +698,16 @@ void CFrame::DoStop()
|
||||
// Ask for confirmation in case the user accidentally clicked Stop / Escape
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bConfirmStop)
|
||||
{
|
||||
wxMessageDialog dlg(
|
||||
wxMessageDialog *dlg = new wxMessageDialog(
|
||||
this,
|
||||
wxString::FromAscii("Do want to stop the current emulation?"),
|
||||
wxString::FromAscii("Please confirm..."),
|
||||
wxYES_NO | wxSTAY_ON_TOP | wxCENTRE,
|
||||
wxT("Do you want to stop the current emulation?"),
|
||||
wxT("Please confirm..."),
|
||||
wxYES_NO | wxSTAY_ON_TOP | wxICON_EXCLAMATION,
|
||||
wxDefaultPosition);
|
||||
|
||||
if (dlg.ShowModal() == wxID_NO)
|
||||
int Ret = dlg->ShowModal();
|
||||
delete dlg;
|
||||
if (Ret == wxID_NO)
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user