vcpkg/ports/qtdeclarative/7c94c7a.diff

15 lines
596 B
Diff
Raw Normal View History

diff --git a/src/quicklayouts/qquicklayout.cpp b/src/quicklayouts/qquicklayout.cpp
index e3d2457..97da0a6 100644
--- a/src/quicklayouts/qquicklayout.cpp
+++ b/src/quicklayouts/qquicklayout.cpp
@@ -949,7 +949,8 @@
{
Q_D(QQuickLayout);
QQuickItem::geometryChange(newGeometry, oldGeometry);
- if (invalidated() || d->m_disableRearrange || !isReady())
+ if ((invalidated() && !qobject_cast<QQuickLayout *>(parentItem())) ||
+ d->m_disableRearrange || !isReady())
return;
qCDebug(lcQuickLayouts) << "QQuickLayout::geometryChange" << newGeometry << oldGeometry;