forked from qt-creator/qt-creator
RemoteLinux: Don't make presence of device an absolute prerequisite ...
... for deployment and running. Rationale: An emulator might get started on-demand during deployment and get auto-detected in the process. Change-Id: Id95ccccbf4d570f9fa69a6ed3a8a473fd63c5968 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -80,19 +80,14 @@ QVariantMap AbstractRemoteLinuxDeployStep::toMap() const
|
||||
bool AbstractRemoteLinuxDeployStep::init()
|
||||
{
|
||||
QString error;
|
||||
deployService()->setDeviceConfiguration(deployConfiguration()->deviceConfiguration());
|
||||
deployService()->setBuildConfiguration(qobject_cast<Qt4ProjectManager::Qt4BuildConfiguration *>(target()->activeBuildConfiguration()));
|
||||
const bool canDeploy = isDeploymentPossible(&error);
|
||||
if (!canDeploy)
|
||||
emit addOutput(tr("Deployment failed: %1").arg(error), ErrorMessageOutput);
|
||||
return canDeploy;
|
||||
}
|
||||
|
||||
bool AbstractRemoteLinuxDeployStep::isDeploymentPossible(QString *whyNot) const
|
||||
{
|
||||
deployService()->setDeviceConfiguration(deployConfiguration()->deviceConfiguration());
|
||||
deployService()->setBuildConfiguration(qobject_cast<Qt4ProjectManager::Qt4BuildConfiguration *>(target()->activeBuildConfiguration()));
|
||||
return deployService()->isDeploymentPossible(whyNot);
|
||||
}
|
||||
|
||||
void AbstractRemoteLinuxDeployStep::run(QFutureInterface<bool> &fi)
|
||||
{
|
||||
connect(deployService(), SIGNAL(errorMessage(QString)), SLOT(handleErrorMessage(QString)));
|
||||
|
||||
Reference in New Issue
Block a user