mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Fix a memory leak in the breakpoint window.
Parent message alerts by the active window. This way if another window is open it isn't pushed behind the main window. We probably should parent the message alerts by the calling window instead, but this may be good enough. Make sure there is only one instance of some modeless windows (Cheats Manager and Net Play). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7257 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -468,7 +468,7 @@ bool wxMsgAlert(const char* caption, const char* text, bool yes_no, int /*Style*
|
||||
#endif
|
||||
return wxYES == wxMessageBox(wxString::FromUTF8(text),
|
||||
wxString::FromUTF8(caption),
|
||||
(yes_no) ? wxYES_NO : wxOK, main_frame);
|
||||
(yes_no) ? wxYES_NO : wxOK, wxGetActiveWindow());
|
||||
#ifdef __WXGTK__
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user