diff --git a/declarativeimports/core/dialog.cpp b/declarativeimports/core/dialog.cpp index 7327503cf..1d6c2ca1d 100644 --- a/declarativeimports/core/dialog.cpp +++ b/declarativeimports/core/dialog.cpp @@ -237,6 +237,10 @@ QPoint DialogProxy::popupPosition(QGraphicsObject *item, int alignment) return corona->popupPosition(actualItem, m_dialog->size(), (Qt::AlignmentFlag)alignment); } else { + if (!actualItem->scene()) { + return QPoint(); + } + QList views = actualItem->scene()->views();