summaryrefslogtreecommitdiffstats
path: root/src/runtime/Qt3DSQmlEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/Qt3DSQmlEngine.cpp')
-rw-r--r--src/runtime/Qt3DSQmlEngine.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/runtime/Qt3DSQmlEngine.cpp b/src/runtime/Qt3DSQmlEngine.cpp
index c7e6e88..e5378a6 100644
--- a/src/runtime/Qt3DSQmlEngine.cpp
+++ b/src/runtime/Qt3DSQmlEngine.cpp
@@ -608,14 +608,16 @@ void CQmlEngineImpl::Initialize()
bool queueAttributeChange(TElement *target, const char *attName, const char *value)
{
- TElement *componentElement = target->GetActivityZone().GetItemTimeParent(*target);
- TComponent *component = static_cast<TComponent *>(componentElement);
- // Queue changes to elements inside components that have not been activated even once
- if (component->GetCurrentSlide() == 0) {
- IPresentation *presentation = target->GetBelongedPresentation();
- presentation->GetComponentManager().queueChange(componentElement, target,
- attName, value);
- return true;
+ if (target->m_BelongedPresentation->GetActivityZone()) {
+ TElement *componentElement = target->GetActivityZone().GetItemTimeParent(*target);
+ TComponent *component = static_cast<TComponent *>(componentElement);
+ // Queue changes to elements inside components that have not been activated even once
+ if (component->GetCurrentSlide() == 0) {
+ IPresentation *presentation = target->GetBelongedPresentation();
+ presentation->GetComponentManager().queueChange(componentElement, target,
+ attName, value);
+ return true;
+ }
}
return false;
}