diff --git a/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h b/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h
index 39b559cabe33592242dcf1e7c9b8953bab71e9b8..330107bb38fff6d9030d3c01b5c0e08382690b1e 100644
--- a/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h
+++ b/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h
@@ -103,7 +103,7 @@ public:
                        const QVariant &argument = QVariant());
 
     void messageReceived(const QByteArray &);
-    void enabledChanged(bool);
+    void statusChanged(Status);
 
 public slots:
 //    void pauses();
diff --git a/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp b/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp
index 24c61eead00ddb02a24ac6dbda5d8e2db1c8c926..6338afd94ef8944fd4c0e8b4b07f20edd76a0d7c 100644
--- a/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp
+++ b/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp
@@ -511,10 +511,10 @@ void JSDebuggerAgent::continueExec()
     loop.quit();
 }
 
-void JSDebuggerAgent::enabledChanged(bool on)
+void JSDebuggerAgent::statusChanged(Status status)
 {
-    engine()->setAgent(on ? this : 0);
-    QDeclarativeDebugService::enabledChanged(on);
+    engine()->setAgent(status == Enabled ? this : 0);
+    QDeclarativeDebugService::statusChanged(status);
 }
 
 } // namespace QmlJSDebugger