Break from loop once we've found a Layout

There's no point in going on.
I already fixed that in Applet a while ago but forgot that in Dialog and ConfigView.

Differential Revision: https://phabricator.kde.org/D4017
This commit is contained in:
Kai Uwe Broulik 2017-01-09 17:10:27 +01:00
parent 12a4709b6c
commit 57d58e371d
2 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,7 @@ void ConfigViewPrivate::mainItemLoaded()
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
) {
layout = child;
break;
}
}
mainItemLayout = layout;

View File

@ -780,6 +780,7 @@ void Dialog::setMainItem(QQuickItem *mainItem)
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
) {
layout = child;
break;
}
}