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