diff options
Diffstat (limited to 'src/plugins/qmldesigner/components/textureeditor/textureeditorcontextobject.cpp')
-rw-r--r-- | src/plugins/qmldesigner/components/textureeditor/textureeditorcontextobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/textureeditor/textureeditorcontextobject.cpp b/src/plugins/qmldesigner/components/textureeditor/textureeditorcontextobject.cpp index 679e07b00c..1148e31e2b 100644 --- a/src/plugins/qmldesigner/components/textureeditor/textureeditorcontextobject.cpp +++ b/src/plugins/qmldesigner/components/textureeditor/textureeditorcontextobject.cpp @@ -339,7 +339,8 @@ QString TextureEditorContextObject::resolveResourcePath(const QString &path) { if (Utils::FilePath::fromString(path).isAbsolutePath()) return path; - return DocumentManager::currentResourcePath().path() + '/' + path; + return QmlDesignerPlugin::instance()->documentManager().currentDesignDocument() + ->fileName().absolutePath().pathAppended(path).cleanPath().toString(); } } // QmlDesigner |