check the value before using it

This commit is contained in:
Aaron Seigo 2011-05-28 00:21:59 +02:00
parent 394979daa4
commit 223795818f

View File

@ -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);
}
}
}