diff --git a/src/declarativeimports/core/dialog.cpp b/src/declarativeimports/core/dialog.cpp index 773f95803..4237d88ba 100644 --- a/src/declarativeimports/core/dialog.cpp +++ b/src/declarativeimports/core/dialog.cpp @@ -136,7 +136,7 @@ void DialogProxy::onVisibleChanged() } setPosition(screen()->availableGeometry().topLeft()); setGeometry(screen()->availableGeometry()); - } else { + } else if (m_visualParent) { if (!m_cachedGeometry.isNull()) { resize(m_cachedGeometry.size()); syncMainItemToSize();