From fc0b0b8ed1d80747141b8f21900159346f72860b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 1 Jan 2012 20:04:35 +0100 Subject: [PATCH] guard against no scene --- declarativeimports/core/dialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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();