Compact two identical conditions

This commit is contained in:
David Edmundson 2014-03-24 17:07:30 +01:00
parent 399e61901f
commit b5dc457570

View File

@ -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;