mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 00:13:53 +02:00
check for null when we dont
This commit is contained in:
parent
788849e19a
commit
b2a11aa9ab
1 changed files with 5 additions and 0 deletions
|
@ -81,6 +81,11 @@ void TabletScriptingInterface::setQmlTabletRoot(QString tabletId, QQuickItem* qm
|
|||
|
||||
QQuickWindow* TabletScriptingInterface::getTabletWindow() {
|
||||
TabletProxy* tablet = qobject_cast<TabletProxy*>(getTablet("com.highfidelity.interface.tablet.system"));
|
||||
|
||||
if (!tablet) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
QObject* qmlSurface = tablet->getTabletSurface();
|
||||
OffscreenQmlSurface* surface = dynamic_cast<OffscreenQmlSurface*>(qmlSurface);
|
||||
|
||||
|
|
Loading…
Reference in a new issue