check the value before using it
This commit is contained in:
parent
394979daa4
commit
223795818f
@ -485,9 +485,9 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig
|
||||
kDebug() << actualItem;
|
||||
|
||||
if (actualItem) {
|
||||
QGraphicsView *parentView = viewFor(actualItem);
|
||||
if (parentView) {
|
||||
v = parentView;
|
||||
v = viewFor(actualItem);
|
||||
if (!v) {
|
||||
return QPoint(0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user