Fix crash

This commit is contained in:
Aleix Pol 2019-03-21 19:13:03 +01:00
parent 0ffe183d71
commit 349648c1e6

View File

@ -328,7 +328,7 @@ void AppletQuickItemPrivate::preloadForExpansion()
if (!appletShouldBeExpanded() && compactRepresentationExpanderItem) {
compactRepresentationExpanderItem->setProperty("fullRepresentation", QVariant::fromValue<QObject*>(createFullRepresentationItem()));
} else {
} else if (fullRepresentationItem) {
fullRepresentationItem->setProperty("parent", QVariant::fromValue<QObject*>(q));
}