Commit ae4993f8 authored by Olivier Goffart's avatar Olivier Goffart
Browse files

Qml Live Preview: when adding new items, only add the root

The root is enough because the rest of the tree will be added as the
root is added
parent e952470b
...@@ -437,8 +437,11 @@ Delta::DebugIdMap Delta::operator()(const Document::Ptr &doc1, const Document::P ...@@ -437,8 +437,11 @@ Delta::DebugIdMap Delta::operator()(const Document::Ptr &doc1, const Document::P
continue; continue;
if (!M.way2.contains(y)) { if (!M.way2.contains(y)) {
qDebug () << "Delta::operator(): insert " << label(y, doc2) << " to " << label(parents2.parent.value(y), doc2); UiObjectMember* parent = parents2.parent.value(y);
insert(y, parents2.parent.value(y), newDebuggIds.value(parents2.parent.value(y)), doc2); if (!M.way2.contains(parent))
continue;
qDebug () << "Delta::operator(): insert " << label(y, doc2) << " to " << label(parent, doc2);
insert(y, parent, newDebuggIds.value(parent), doc2);
continue; continue;
} }
UiObjectMember *x = M.way2[y]; UiObjectMember *x = M.way2[y];
......
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