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