diff options
-rw-r--r-- | src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp b/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp index 559bdeb198..20052b45e4 100644 --- a/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp +++ b/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp @@ -107,8 +107,9 @@ void QmlBuildSystem::updateDeploymentData() } ProjectExplorer::DeploymentData deploymentData; - for (const auto &file : m_projectItem->files()) - deploymentData.addFile(file, m_projectItem->targetDirectory()); + for (const auto &file : m_projectItem->files()) { + deploymentData.addFile(file, targetFile(file).parentDir().path()); + } setDeploymentData(deploymentData); } @@ -187,7 +188,7 @@ void QmlBuildSystem::refresh(RefreshOptions options) project()->files(Project::HiddenRccFolders)); for (const QString &searchPath : customImportPaths()) { - projectInfo.importPaths.maybeInsert(projectFilePath().pathAppended(searchPath), + projectInfo.importPaths.maybeInsert(projectDirectory().pathAppended(searchPath), QmlJS::Dialect::Qml); } |