Revert "Do not leak toolbox items"

This reverts commit 5e9fc425c6.
This commit is contained in:
David Edmundson 2014-07-17 21:12:16 +02:00
parent 1f7951d873
commit a0bd7c9c14

View File

@ -123,7 +123,6 @@ void ContainmentInterface::init()
QObject *toolBoxObject = qmlObject()->createObjectFromSource(QUrl::fromLocalFile(pkg.filePath("mainscript")), 0, toolboxProperties);
if (toolBoxObject && containmentGraphicObject) {
containmentGraphicObject->setProperty("toolBox", QVariant::fromValue(toolBoxObject));
toolBoxObject->setParent(containmentGraphicObject);
}
} else {
qWarning() << "Could not load toolbox package." << pkg.path();