BUGFIX: assign visualparent if it's set

not the other way around
This commit is contained in:
Marco Martin 2011-12-27 18:26:05 +01:00
parent d4b7cccfc7
commit 4e8d9963ab

View File

@ -97,9 +97,9 @@ void QMenuProxy::open()
QGraphicsObject *parentItem;
if (m_visualParent) {
parentItem = qobject_cast<QGraphicsObject *>(parent());
} else {
parentItem = m_visualParent.data();
} else {
parentItem = qobject_cast<QGraphicsObject *>(parent());
}
if (!parentItem || !parentItem->scene()) {