diff options
Diffstat (limited to 'src/plugins/projectexplorer/deploymentdata.cpp')
-rw-r--r-- | src/plugins/projectexplorer/deploymentdata.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/deploymentdata.cpp b/src/plugins/projectexplorer/deploymentdata.cpp index 1d9943ae59..4d4aec4a12 100644 --- a/src/plugins/projectexplorer/deploymentdata.cpp +++ b/src/plugins/projectexplorer/deploymentdata.cpp @@ -87,11 +87,11 @@ QString DeploymentData::addFilesFromDeploymentFile(const QString &deploymentFile QString line = deploymentStream.readLine(); if (!line.contains(':')) continue; - QStringList file = line.split(':'); - QString sourceFile = file.at(0); + int splitPoint = line.lastIndexOf(':'); + QString sourceFile = line.left(splitPoint); if (QFileInfo(sourceFile).isRelative()) sourceFile.prepend(sourcePrefix); - QString targetFile = file.at(1); + QString targetFile = line.mid(splitPoint + 1); if (QFileInfo(targetFile).isRelative()) targetFile.prepend(deploymentPrefix); addFile(sourceFile, targetFile); |