Skip to content
Snippets Groups Projects
Commit 7777e254 authored by Olivier Goffart's avatar Olivier Goffart
Browse files

QML Live Preview: Apparently, the interresting root object is the last.

Even if we should really care about all of them, the object that is the root
of all the graphical QML item is the usually last.
parent 014b36d3
No related branches found
No related tags found
No related merge requests found
......@@ -361,7 +361,7 @@ void ClientProxy::contextChanged()
m_rootObject = QDeclarativeDebugObjectReference();
emit objectTreeUpdated(m_rootObject);
} else {
m_rootObject = m_contextQuery->rootContext().objects().first();
m_rootObject = m_contextQuery->rootContext().objects().last();
}
delete m_contextQuery;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment