guard against no scene
This commit is contained in:
parent
e121edf7d8
commit
fc0b0b8ed1
@ -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();
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user