Cmake fix warning

QTextStream: No device

Change-Id: I059f163d82bea0719b9781d0e20c691606047326
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Nikita Baryshnikov
2014-06-28 17:23:42 +04:00
parent 93b53a4bb3
commit 24d82a86ab

View File

@@ -737,9 +737,11 @@ void CMakeProject::updateApplicationAndDeploymentTargets()
QString absoluteSourcePath = sourceDir.absolutePath();
if (!absoluteSourcePath.endsWith(QLatin1Char('/')))
absoluteSourcePath.append(QLatin1Char('/'));
while (!deploymentStream.atEnd()) {
QStringList file = deploymentStream.readLine().split(QLatin1Char(':'));
deploymentData.addFile(absoluteSourcePath + file.at(0), deploymentPrefix + file.at(1));
if (deploymentStream.device()) {
while (!deploymentStream.atEnd()) {
QStringList file = deploymentStream.readLine().split(QLatin1Char(':'));
deploymentData.addFile(absoluteSourcePath + file.at(0), deploymentPrefix + file.at(1));
}
}
t->setApplicationTargets(appTargetList);