reparent the compact representation

leak--
This commit is contained in:
Marco Martin 2012-12-28 20:40:34 +01:00
parent fd00bbdafa
commit 2c6d44eb23

View File

@ -160,7 +160,7 @@ void DeclarativeAppletScript::qmlCreationFinished()
lay->setContentsMargins(0, 0, 0, 0);
DeclarativeItemContainer *declarativeItemContainer = new DeclarativeItemContainer(a);
lay->addItem(declarativeItemContainer);
declarativeItemContainer->setDeclarativeItem(declarativeIcon);
declarativeItemContainer->setDeclarativeItem(declarativeIcon, true);
} else {
pa->setPopupIcon(a->icon());
}