Don't reposition while hiding.

BUG:354352
This commit is contained in:
Eike Hein 2015-11-26 22:29:58 +01:00
parent 9ccc6293f7
commit 8ce47c5f1e

View File

@ -1229,7 +1229,7 @@ void Dialog::setVisible(bool visible)
d->visible = visible;
if (d->componentComplete) {
if (d->visualParent) {
if (visible && d->visualParent) {
setPosition(popupPosition(d->visualParent, size()));
}
QQuickWindow::setVisible(visible);