Commit a7945715 authored by hjk's avatar hjk
Browse files

debugger: compile hot fix

parent 227c75ea
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <debugger/debuggerconstants.h> #include <debugger/debuggerconstants.h>
#include <debugger/qml/qmladapter.h> #include <debugger/qml/qmladapter.h>
#include <debugger/qml/qmlengine.h>
#include <qmlprojectmanager/qmlproject.h> #include <qmlprojectmanager/qmlproject.h>
#include <qmljseditor/qmljseditorconstants.h> #include <qmljseditor/qmljseditorconstants.h>
...@@ -135,10 +134,8 @@ void InspectorPlugin::objectAdded(QObject *object) ...@@ -135,10 +134,8 @@ void InspectorPlugin::objectAdded(QObject *object)
return; return;
} }
Debugger::QmlEngine *engine = qobject_cast<Debugger::QmlEngine*>(object); if (object->objectName() == QLatin1String("QmlEngine"))
if (engine) { m_inspectorUi->setDebuggerEngine(object);
m_inspectorUi->setDebuggerEngine(engine);
}
} }
void InspectorPlugin::aboutToRemoveObject(QObject *obj) void InspectorPlugin::aboutToRemoveObject(QObject *obj)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment