Commit ab8713d7 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

RemoteLinux: Fix crash in deploy config factory.

Change-Id: Ie4742619ae4b1138ba59dfe9ac9162a992cdfc18
Reviewed-on: http://codereview.qt.nokia.com/1697

Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
parent eda93bde
......@@ -52,10 +52,9 @@ GenericRemoteLinuxDeployStepFactory::GenericRemoteLinuxDeployStepFactory(QObject
QStringList GenericRemoteLinuxDeployStepFactory::availableCreationIds(BuildStepList *parent) const
{
QStringList ids;
if (qobject_cast<DeployConfiguration *>(parent->parent())->id()
!= RemoteLinuxDeployConfigurationFactory::genericDeployConfigurationId()) {
const DeployConfiguration * const dc = qobject_cast<DeployConfiguration *>(parent->parent());
if (!dc || dc->id() != RemoteLinuxDeployConfigurationFactory::genericDeployConfigurationId())
return ids;
}
ids << MaemoTarPackageCreationStep::CreatePackageId << UploadAndInstallTarPackageStep::stepId()
<< GenericDirectUploadStep::stepId();
return ids;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment