diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-05-17 23:38:26 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-05-17 23:38:26 (GMT) |
commit | 749407354ebfaaf87f9b10e6bc6e394c04f7c4f0 (patch) | |
tree | e9d680ac1a99d0284f6744022c247fe02d9930de /tools/qml | |
parent | 1db36a5a37dcca0e24ada3c852f2647ab2330eee (diff) | |
download | Qt-749407354ebfaaf87f9b10e6bc6e394c04f7c4f0.zip Qt-749407354ebfaaf87f9b10e6bc6e394c04f7c4f0.tar.gz Qt-749407354ebfaaf87f9b10e6bc6e394c04f7c4f0.tar.bz2 |
Fix to work with file: URLs (eg. from qml -qmlbrowser)
Diffstat (limited to 'tools/qml')
-rw-r--r-- | tools/qml/qmlruntime.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp index 9700090..490fa34 100644 --- a/tools/qml/qmlruntime.cpp +++ b/tools/qml/qmlruntime.cpp @@ -906,6 +906,7 @@ bool QDeclarativeViewer::open(const QString& file_or_url) QString fileName = url.toLocalFile(); if (!fileName.isEmpty()) { + fi.setFile(fileName); if (fi.exists()) { if (fi.suffix().toLower() != QLatin1String("qml")) { qWarning() << "qml cannot open non-QML file" << fileName; |