mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Update the breakpoint list after an add from the parent
Doing it from the add dialogs instead would prevent the call to these dialogs outside of a breakpointWindow which would be necessary for hotkeys binding.
This commit is contained in:
@ -16,8 +16,7 @@
|
||||
#include "DolphinWX/Debugger/BreakpointWindow.h"
|
||||
#include "DolphinWX/WxUtils.h"
|
||||
|
||||
BreakPointDlg::BreakPointDlg(CBreakPointWindow* _Parent)
|
||||
: wxDialog(_Parent, wxID_ANY, _("Add Breakpoint")), Parent(_Parent)
|
||||
BreakPointDlg::BreakPointDlg(wxWindow* _Parent) : wxDialog(_Parent, wxID_ANY, _("Add Breakpoint"))
|
||||
{
|
||||
Bind(wxEVT_BUTTON, &BreakPointDlg::OnOK, this, wxID_OK);
|
||||
|
||||
@ -42,8 +41,7 @@ void BreakPointDlg::OnOK(wxCommandEvent& event)
|
||||
if (AsciiToHex(WxStrToStr(AddressString), Address))
|
||||
{
|
||||
PowerPC::breakpoints.Add(Address);
|
||||
Parent->NotifyUpdate();
|
||||
Close();
|
||||
EndModal(wxID_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user