if rootObject exists, component is here and ready

Change-Id: I37deb527a04dde9ce458c5aea8e178b3d08b1b46
This commit is contained in:
Marco Martin 2014-09-25 18:02:59 +02:00
parent a71697e68d
commit 5b50373b37

View File

@ -221,7 +221,7 @@ QQuickItem *AppletQuickItemPrivate::createCompactRepresentationExpanderItem()
void AppletQuickItemPrivate::compactRepresentationCheck()
{
if (!qmlObject->rootObject() || !qmlObject->mainComponent() || qmlObject->mainComponent()->status() != QQmlComponent::Ready) {
if (!qmlObject->rootObject()) {
return;
}