don't autoposition if there is no visualParent

This commit is contained in:
Marco Martin 2014-01-03 12:31:56 +01:00
parent c71d539b25
commit ad4fecf426

View File

@ -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();