diff options
| author | aldelaro5 <aldelaro5@gmail.com> | 2018-05-05 18:17:06 -0400 |
|---|---|---|
| committer | aldelaro5 <aldelaro5@gmail.com> | 2018-05-12 19:04:30 -0400 |
| commit | 238c801711f9daa4613e988fa2147bd9e852ba91 (patch) | |
| tree | 7861a27ea62df703b5a25a3197524ba9c1a34497 /Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp | |
| parent | 70ca98c8e782353f8885faf5854540cdef305e03 (diff) | |
Qt/debugger: properly updates when we break
The Host_UpdateDisasmDialog was unimplemented in Qt which is required to get updates when we break. Additionally, this updates the debugger toolbar.
Diffstat (limited to 'Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp b/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp index 3e50203778..7f746d289c 100644 --- a/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp @@ -206,7 +206,9 @@ void BreakpointWidget::OnDelete() auto address = m_table->selectedItems()[0]->data(Qt::UserRole).toUInt(); PowerPC::breakpoints.Remove(address); + Settings::Instance().blockSignals(true); PowerPC::memchecks.Remove(address); + Settings::Instance().blockSignals(false); Update(); } @@ -214,7 +216,9 @@ void BreakpointWidget::OnDelete() void BreakpointWidget::OnClear() { PowerPC::debug_interface.ClearAllBreakpoints(); + Settings::Instance().blockSignals(true); PowerPC::debug_interface.ClearAllMemChecks(); + Settings::Instance().blockSignals(false); m_table->setRowCount(0); Update(); @@ -247,7 +251,9 @@ void BreakpointWidget::OnLoad() if (ini.GetLines("MemoryBreakPoints", &newmcs, false)) { PowerPC::memchecks.Clear(); + Settings::Instance().blockSignals(true); PowerPC::memchecks.AddFromStrings(newmcs); + Settings::Instance().blockSignals(false); } Update(); @@ -283,7 +289,9 @@ void BreakpointWidget::AddAddressMBP(u32 addr, bool on_read, bool on_write, bool check.log_on_hit = do_log; check.break_on_hit = do_break; + Settings::Instance().blockSignals(true); PowerPC::memchecks.Add(check); + Settings::Instance().blockSignals(false); Update(); } @@ -301,7 +309,9 @@ void BreakpointWidget::AddRangedMBP(u32 from, u32 to, bool on_read, bool on_writ check.log_on_hit = do_log; check.break_on_hit = do_break; + Settings::Instance().blockSignals(true); PowerPC::memchecks.Add(check); + Settings::Instance().blockSignals(false); Update(); } |
