diff --git a/src/plasmaquick/appletquickitem.cpp b/src/plasmaquick/appletquickitem.cpp index eaff449f1..c4403cf6f 100644 --- a/src/plasmaquick/appletquickitem.cpp +++ b/src/plasmaquick/appletquickitem.cpp @@ -272,6 +272,7 @@ void AppletQuickItemPrivate::compactRepresentationCheck() //unwire with the expander if (compactRepresentationExpanderItem) { compactRepresentationExpanderItem.data()->setProperty("fullRepresentation", QVariant()); + compactRepresentationExpanderItem.data()->setProperty("compactRepresentation", QVariant()); compactRepresentationExpanderItem.data()->setProperty("visible", false); } @@ -287,11 +288,6 @@ void AppletQuickItemPrivate::compactRepresentationCheck() compactRepresentationItem.data()->setProperty("visible", false); } - if (compactRepresentationExpanderItem) { - compactRepresentationExpanderItem.data()->setProperty("compactRepresentation", QVariant()); - compactRepresentationExpanderItem.data()->setProperty("fullRepresentation", QVariant()); - } - currentRepresentationItem = item; connectLayoutAttached(item); expanded = true;