mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 02:53:01 +02:00
Ensure a web overlay doesn't access an invalid tabletScriptingInterface
This commit is contained in:
parent
29c80fc075
commit
ba1ac7c180
1 changed files with 3 additions and 1 deletions
|
@ -132,7 +132,9 @@ void Web3DOverlay::destroyWebSurface() {
|
||||||
|
|
||||||
if (rootItem && rootItem->objectName() == "tabletRoot") {
|
if (rootItem && rootItem->objectName() == "tabletRoot") {
|
||||||
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
||||||
tabletScriptingInterface->setQmlTabletRoot("com.highfidelity.interface.tablet.system", nullptr);
|
if (tabletScriptingInterface) {
|
||||||
|
tabletScriptingInterface->setQmlTabletRoot("com.highfidelity.interface.tablet.system", nullptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix for crash in QtWebEngineCore when rapidly switching domains
|
// Fix for crash in QtWebEngineCore when rapidly switching domains
|
||||||
|
|
Loading…
Reference in a new issue