guard against no scene

This commit is contained in:
Marco Martin 2012-01-01 20:04:35 +01:00
parent e121edf7d8
commit fc0b0b8ed1

View File

@ -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<QGraphicsView*> views = actualItem->scene()->views();