From 394979daa4bcf52c316f5122e7cad737ced3da09 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 27 May 2011 15:51:20 +0200 Subject: [PATCH] check value of view BUG:274202 --- corona.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/corona.cpp b/corona.cpp index 1a47d7881..8f17021d1 100644 --- a/corona.cpp +++ b/corona.cpp @@ -484,11 +484,14 @@ 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; + } } } - + if (!actualItem) { actualItem = item; }