From b5dc457570e8e5e1b08011c5ceaf495259ac9dca Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 24 Mar 2014 17:07:30 +0100 Subject: [PATCH] Compact two identical conditions --- src/plasmaquick/appletquickitem.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;