summaryrefslogtreecommitdiffstats
path: root/examples/quick/controls/filesystembrowser/main.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-09-25 20:59:06 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-09-25 20:59:06 +0200
commite8d4677e309e11cc5177bc10d9d01aa200407cee (patch)
treeb0a3f0200455ba22452e076017a2e64cd602fb3c /examples/quick/controls/filesystembrowser/main.cpp
parent59f7b30d41b06b1d9da81aea5784d57ecd91ab04 (diff)
parent53ff51b61a3ecfc485d7c8ec6d9a5b61d2791719 (diff)
Merge remote-tracking branch 'origin/5.6' into dev
Diffstat (limited to 'examples/quick/controls/filesystembrowser/main.cpp')
-rw-r--r--examples/quick/controls/filesystembrowser/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/controls/filesystembrowser/main.cpp b/examples/quick/controls/filesystembrowser/main.cpp
index ac24bada8..e9c63c208 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();
}