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:
parent
12a4709b6c
commit
57d58e371d
@ -241,6 +241,7 @@ void ConfigViewPrivate::mainItemLoaded()
|
|||||||
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
|
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
|
||||||
) {
|
) {
|
||||||
layout = child;
|
layout = child;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mainItemLayout = layout;
|
mainItemLayout = layout;
|
||||||
|
@ -780,6 +780,7 @@ void Dialog::setMainItem(QQuickItem *mainItem)
|
|||||||
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
|
child->property("fillWidth").isValid() && child->property("fillHeight").isValid()
|
||||||
) {
|
) {
|
||||||
layout = child;
|
layout = child;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user