[AppletQuickItem] Break from loop when we found a layout

There's no point in going on once we found a layout.

REVIEW: 128851
This commit is contained in:
Kai Uwe Broulik 2016-09-06 20:43:54 +02:00
parent 53ad186abc
commit dd5d07afec

View File

@ -87,6 +87,7 @@ void AppletQuickItemPrivate::connectLayoutAttached(QObject *item)
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
) {
layout = child;
break;
}
}
@ -115,6 +116,7 @@ void AppletQuickItemPrivate::connectLayoutAttached(QObject *item)
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
) {
ownLayout = child;
break;
}
}