diff options
Diffstat (limited to 'examples/quick/controls/filesystembrowser/main.cpp')
-rw-r--r-- | examples/quick/controls/filesystembrowser/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/controls/filesystembrowser/main.cpp b/examples/quick/controls/filesystembrowser/main.cpp index ac24bada..e9c63c20 100644 --- a/examples/quick/controls/filesystembrowser/main.cpp +++ b/examples/quick/controls/filesystembrowser/main.cpp @@ -143,6 +143,8 @@ int main(int argc, char *argv[]) engine.rootContext()->setContextProperty("fileSystemModel", fsm); engine.rootContext()->setContextProperty("rootPathIndex", fsm->index(fsm->rootPath())); engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); + if (engine.rootObjects().isEmpty()) + return -1; return app.exec(); } |