From dd5d07afece20f977d84f908032d81bd31f8e488 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 6 Sep 2016 20:43:54 +0200 Subject: [PATCH] [AppletQuickItem] Break from loop when we found a layout There's no point in going on once we found a layout. REVIEW: 128851 --- src/plasmaquick/appletquickitem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plasmaquick/appletquickitem.cpp b/src/plasmaquick/appletquickitem.cpp index a95c445d0..95695d503 100644 --- a/src/plasmaquick/appletquickitem.cpp +++ b/src/plasmaquick/appletquickitem.cpp @@ -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; } }