diff --git a/src/plasmaquick/appletquickitem.cpp b/src/plasmaquick/appletquickitem.cpp index 3ad97e1e7..aba9aefa5 100644 --- a/src/plasmaquick/appletquickitem.cpp +++ b/src/plasmaquick/appletquickitem.cpp @@ -48,8 +48,7 @@ AppletQuickItemPrivate::AppletQuickItemPrivate(Plasma::Applet *a, AppletQuickIte switchWidth(-1), switchHeight(-1), applet(a), - expanded(false), - creatingFullRepresentation(false) + expanded(false) { } @@ -185,9 +184,7 @@ QObject *AppletQuickItemPrivate::createFullRepresentationItem() } if (fullRepresentation && fullRepresentation.data() != qmlObject->mainComponent()) { - creatingFullRepresentation = true; fullRepresentationItem = qmlObject->createObjectFromComponent(fullRepresentation.data(), QtQml::qmlContext(qmlObject->rootObject())); - creatingFullRepresentation = false; } else { fullRepresentation = qmlObject->mainComponent(); fullRepresentationItem = qmlObject->rootObject(); @@ -628,10 +625,6 @@ bool AppletQuickItem::isExpanded() const void AppletQuickItem::setExpanded(bool expanded) { - if (d->creatingFullRepresentation) { - return; - } - if (d->applet->isContainment()) { expanded = true; } diff --git a/src/plasmaquick/private/appletquickitem_p.h b/src/plasmaquick/private/appletquickitem_p.h index ab984b080..255fb4d86 100644 --- a/src/plasmaquick/private/appletquickitem_p.h +++ b/src/plasmaquick/private/appletquickitem_p.h @@ -101,7 +101,6 @@ public: Plasma::Package coronaPackage; bool expanded : 1; - bool creatingFullRepresentation : 1; static QHash s_rootObjects; };