RemoteLinux: Fix prepending installPrefix.

The remoteDir started with "//" for an empty installPrefix.

Change-Id: I2fa5614369a4186502ec666e9202a0f8976b5318
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Nikolai Kosjar
2012-03-29 16:54:29 +02:00
parent d10cb67e38
commit 8a88e4face

View File

@@ -91,8 +91,10 @@ DeployableFilesPerProFile::DeployableFilesPerProFile(const Qt4ProFileNode *proFi
d->deployables << DeployableFile(file, elem.path);
}
for (int i = 0; i < d->deployables.count(); ++i)
d->deployables[i].remoteDir.prepend(installPrefix + QLatin1Char('/'));
if (!installPrefix.isEmpty()) {
for (int i = 0; i < d->deployables.count(); ++i)
d->deployables[i].remoteDir.prepend(installPrefix + QLatin1Char('/'));
}
}
DeployableFilesPerProFile::~DeployableFilesPerProFile()