check value of view

BUG:274202
This commit is contained in:
Aaron Seigo 2011-05-27 15:51:20 +02:00
parent 13adc2ddd2
commit 394979daa4

View File

@ -484,11 +484,14 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig
kDebug() << actualItem; kDebug() << actualItem;
if (!v->isVisible() && actualItem) { if (actualItem) {
v = viewFor(actualItem); QGraphicsView *parentView = viewFor(actualItem);
if (parentView) {
v = parentView;
}
} }
} }
if (!actualItem) { if (!actualItem) {
actualItem = item; actualItem = item;
} }