From a35170a8545bc947822dada20e60343ccb1db692 Mon Sep 17 00:00:00 2001
From: Christiaan Janssen <christiaan.janssen@nokia.com>
Date: Tue, 23 Nov 2010 16:12:16 +0100
Subject: [PATCH] QmlDebugger:  Assigning Qml breakpoints to the Qml Engine

Reviewed-by: hjk
---
 src/plugins/debugger/qml/qmlengine.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp
index 1bf0e900edb..19c57146e8e 100644
--- a/src/plugins/debugger/qml/qmlengine.cpp
+++ b/src/plugins/debugger/qml/qmlengine.cpp
@@ -460,6 +460,13 @@ void QmlEngine::selectThread(int index)
 void QmlEngine::attemptBreakpointSynchronization()
 {
     BreakHandler *handler = breakHandler();
+
+    foreach (BreakpointId id, handler->unclaimedBreakpointIds()) {
+        // Take ownership of the breakpoint. Requests insertion.
+        if (acceptsBreakpoint(id))
+            handler->setEngine(id, this);
+    }
+
     //bool updateNeeded = false;
     JSAgentBreakpoints breakpoints;
     foreach (BreakpointId id, handler->engineBreakpointIds(this)) {
-- 
GitLab