summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/runtime/Qt3DSApplication.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/Qt3DSApplication.cpp b/src/runtime/Qt3DSApplication.cpp
index 6d88400..cec15d4 100644
--- a/src/runtime/Qt3DSApplication.cpp
+++ b/src/runtime/Qt3DSApplication.cpp
@@ -1688,6 +1688,10 @@ struct SApp : public IApplication
}
ISlideSystem &s = presentation->GetSlideSystem();
index = s.FindSlide(*component, qPrintable(slideName));
+ if (index == 0xFF) {
+ qCWarning(WARNING) << "Could not find slide: " << elementPath;
+ return false;
+ }
return true;
}