summaryrefslogtreecommitdiff
path: root/examples/quick/controls/calendar/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/controls/calendar/src/main.cpp')
-rw-r--r--examples/quick/controls/calendar/src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/controls/calendar/src/main.cpp b/examples/quick/controls/calendar/src/main.cpp
index 6b3c058a..bab7e4b2 100644
--- a/examples/quick/controls/calendar/src/main.cpp
+++ b/examples/quick/controls/calendar/src/main.cpp
@@ -48,5 +48,7 @@ int main(int argc, char *argv[])
QtQuickControlsApplication app(argc, argv);
qmlRegisterType<SqlEventModel>("org.qtproject.examples.calendar", 1, 0, "SqlEventModel");
QQmlApplicationEngine engine(QUrl("qrc:/qml/main.qml"));
+ if (engine.rootObjects().isEmpty())
+ return -1;
return app.exec();
}