mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 05:23:33 +02:00
fix crash on click on non-visible web-entity
This commit is contained in:
parent
35b80ba066
commit
cc85ce9c01
1 changed files with 6 additions and 1 deletions
|
@ -226,10 +226,15 @@ void RenderableWebEntityItem::setSourceUrl(const QString& value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderableWebEntityItem::setProxyWindow(QWindow* proxyWindow) {
|
void RenderableWebEntityItem::setProxyWindow(QWindow* proxyWindow) {
|
||||||
_webSurface->setProxyWindow(proxyWindow);
|
if (_webSurface) {
|
||||||
|
_webSurface->setProxyWindow(proxyWindow);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QObject* RenderableWebEntityItem::getEventHandler() {
|
QObject* RenderableWebEntityItem::getEventHandler() {
|
||||||
|
if (!_webSurface) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
return _webSurface->getEventHandler();
|
return _webSurface->getEventHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue