summaryrefslogtreecommitdiffstats
path: root/examples/scxml/invoke-static
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scxml/invoke-static')
-rw-r--r--examples/scxml/invoke-static/invoke-static.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/scxml/invoke-static/invoke-static.cpp b/examples/scxml/invoke-static/invoke-static.cpp
index c6d0655..c955ebe 100644
--- a/examples/scxml/invoke-static/invoke-static.cpp
+++ b/examples/scxml/invoke-static/invoke-static.cpp
@@ -63,6 +63,9 @@ int main(int argc, char *argv[])
QQmlApplicationEngine engine;
engine.rootContext()->setContextProperty(QStringLiteral("directions"), &stateMachine);
engine.load(QUrl(QStringLiteral("qrc:/invoke-static.qml")));
+ if (engine.rootObjects().isEmpty())
+ return -1;
+
stateMachine.start();
return app.exec();