forked from qt-creator/qt-creator
QmlJS: Fix local-file url property check.
This commit is contained in:
@@ -170,7 +170,7 @@ public:
|
|||||||
} else {
|
} else {
|
||||||
QString fileName = url.toLocalFile();
|
QString fileName = url.toLocalFile();
|
||||||
if (!fileName.isEmpty()) {
|
if (!fileName.isEmpty()) {
|
||||||
if (url.isRelative()) {
|
if (QFileInfo(fileName).isRelative()) {
|
||||||
fileName.prepend(QDir::separator());
|
fileName.prepend(QDir::separator());
|
||||||
fileName.prepend(_doc->path());
|
fileName.prepend(_doc->path());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user