From 92073445ce74d895d989c64563fa0d6ebc7b94f3 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 27 Dec 2013 13:26:30 +0100 Subject: [PATCH] don't reparent before the applet is expanded or not --- src/scriptengines/qml/plasmoid/appletinterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scriptengines/qml/plasmoid/appletinterface.cpp b/src/scriptengines/qml/plasmoid/appletinterface.cpp index 621158c8f..ffa6c54a7 100644 --- a/src/scriptengines/qml/plasmoid/appletinterface.cpp +++ b/src/scriptengines/qml/plasmoid/appletinterface.cpp @@ -183,7 +183,8 @@ void AppletInterface::init() } //set parent, both as object hyerarchy and visually - if (m_qmlObject->rootObject()) { + //do this only for containments, applets will do it in compactrepresentationcheck + if (pc && m_qmlObject->rootObject()) { m_qmlObject->rootObject()->setProperty("parent", QVariant::fromValue(this)); //set anchors