summaryrefslogtreecommitdiffstats
path: root/examples/declarative/loader/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/loader/main.cpp')
-rw-r--r--examples/declarative/loader/main.cpp2
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();