mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:50:43 +02:00
Merge pull request #13970 from jherico/fix/fb18149
Ensure a web overlay doesn't access an invalid tabletScriptingInterface
This commit is contained in:
commit
ab1718747b
1 changed files with 3 additions and 1 deletions
|
@ -132,8 +132,10 @@ void Web3DOverlay::destroyWebSurface() {
|
|||
|
||||
if (rootItem && rootItem->objectName() == "tabletRoot") {
|
||||
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
||||
if (tabletScriptingInterface) {
|
||||
tabletScriptingInterface->setQmlTabletRoot("com.highfidelity.interface.tablet.system", nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
// Fix for crash in QtWebEngineCore when rapidly switching domains
|
||||
// Call stop on the QWebEngineView before destroying OffscreenQMLSurface.
|
||||
|
|
Loading…
Reference in a new issue