diff options
Diffstat (limited to 'examples/declarative/loader/main.cpp')
-rw-r--r-- | examples/declarative/loader/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/loader/main.cpp b/examples/declarative/loader/main.cpp index 0993814..21d47a0 100644 --- a/examples/declarative/loader/main.cpp +++ b/examples/declarative/loader/main.cpp @@ -92,7 +92,7 @@ public: Q_INVOKABLE void launch(const QString &fileName) { QUrl url(fileName); - QFileInfo fi(fileName); + QFileInfo fi(url.path()); if (fi.exists()) { url = QUrl::fromLocalFile(fi.absoluteFilePath()); QmlContext *ctxt = canvas->rootContext(); |