mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 16:05:17 +02:00
Merge pull request #10929 from druiz17/luanch-crash-fix
Fixed crash when launching interface from fresh install
This commit is contained in:
commit
9b5dfc8d3a
1 changed files with 3 additions and 1 deletions
|
@ -831,7 +831,9 @@ bool OffscreenQmlSurface::eventFilter(QObject* originalDestination, QEvent* even
|
||||||
mouseEvent->screenPos(), mouseEvent->button(),
|
mouseEvent->screenPos(), mouseEvent->button(),
|
||||||
mouseEvent->buttons(), mouseEvent->modifiers());
|
mouseEvent->buttons(), mouseEvent->modifiers());
|
||||||
if (event->type() == QEvent::MouseMove) {
|
if (event->type() == QEvent::MouseMove) {
|
||||||
_qmlContext->setContextProperty("lastMousePosition", transformedPos);
|
// TODO - this line necessary for the QML Tooltop to work (which is not currently being used), but it causes interface to crash on launch on a fresh install
|
||||||
|
// need to investigate into why this crash is happening.
|
||||||
|
//_qmlContext->setContextProperty("lastMousePosition", transformedPos);
|
||||||
}
|
}
|
||||||
mappedEvent.ignore();
|
mappedEvent.ignore();
|
||||||
if (QCoreApplication::sendEvent(_quickWindow, &mappedEvent)) {
|
if (QCoreApplication::sendEvent(_quickWindow, &mappedEvent)) {
|
||||||
|
|
Loading…
Reference in a new issue