check value of view
BUG:274202
This commit is contained in:
parent
13adc2ddd2
commit
394979daa4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user