Commit ec15a551 authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

QML JS Debugger: clear context properly when reloading qml app

parent 8d504e1a
......@@ -591,8 +591,11 @@ void QDeclarativeDesignViewPrivate::_q_onStatusChanged(QDeclarativeView::Status
{
if (status == QDeclarativeView::Ready) {
if (q->rootObject()) {
if (data->subcomponentEditorTool->contextIndex() != -1)
data->subcomponentEditorTool->clear();
subcomponentEditorTool->pushContext(q->rootObject());
emit q->executionStarted(1.0f);
}
qmlDesignDebugServer()->reloaded();
}
......
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