summaryrefslogtreecommitdiffstats
path: root/examples/quick/extras/flat/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/extras/flat/main.cpp')
-rw-r--r--examples/quick/extras/flat/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/extras/flat/main.cpp b/examples/quick/extras/flat/main.cpp
index 1012fa4e9..8faafdca7 100644
--- a/examples/quick/extras/flat/main.cpp
+++ b/examples/quick/extras/flat/main.cpp
@@ -51,5 +51,7 @@ int main(int argc, char *argv[])
}
QQmlApplicationEngine engine;
engine.load(QUrl("qrc:/main.qml"));
+ if (engine.rootObjects().isEmpty())
+ return -1;
return app.exec();
}