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
This commit is contained in:
Olivier Goffart
2010-07-20 14:09:26 +02:00
parent e952470bcd
commit ae4993f8a5

View File

@@ -437,8 +437,11 @@ Delta::DebugIdMap Delta::operator()(const Document::Ptr &doc1, const Document::P
continue;
if (!M.way2.contains(y)) {
qDebug () << "Delta::operator(): insert " << label(y, doc2) << " to " << label(parents2.parent.value(y), doc2);
insert(y, parents2.parent.value(y), newDebuggIds.value(parents2.parent.value(y)), doc2);
UiObjectMember* parent = parents2.parent.value(y);
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;
}
UiObjectMember *x = M.way2[y];