From 88dcefe0e14b0991d0b62bc75f782cfed621ea23 Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Wed, 6 Jun 2012 14:10:07 +0200 Subject: [PATCH] QmlDebugger: Edit breakpoints Remove and add breakpoint when a breakpoint is edited. Change-Id: Idb231c0e9d44fe295007b299660fcbe3a980a252 Reviewed-by: Christiaan Janssen --- src/plugins/debugger/qml/qmlv8debuggerclient.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp index 8b58568b644..4a7bbc63843 100644 --- a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp +++ b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp @@ -1109,8 +1109,9 @@ void QmlV8DebuggerClient::changeBreakpoint(const BreakpointModelId &id) } else { //V8 supports only minimalistic changes in breakpoint //Remove the breakpoint and add again - removeBreakpoint(id); - d->engine->insertBreakpoint(id); + handler->notifyBreakpointChangeOk(id); + handler->removeBreakpoint(id); + handler->appendBreakpoint(params); } }