OSDN Git Service

Always reset the id for an object in node instances
authorMarco Bubke <marco.bubke@nokia.com>
Wed, 12 May 2010 19:50:58 +0000 (21:50 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Mon, 17 May 2010 08:03:41 +0000 (10:03 +0200)
commit565158bbb444a3e63391066b80e12f1c01a5c29c
tree2f97b5aa637eff36bfda6cb80c29c2571be04d6a
parent628375a507056f2f63176899efa404b56238958e
Always reset the id for an object in node instances

Because we tested for the parent, the id of a root item never reset.
This was hidden because if you remove a root item all
child items was removed too. But if the object was not deleted by the
root item and there was a binding the root item id, there was a dangling
pointer.

Task-Number: BAUHAUS-662
Reviewed-by: kkoehne
src/plugins/qmldesigner/designercore/instances/objectnodeinstance.cpp