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

RemoteLinux: Don't force generic run configurations on all targets.



Instead, as a heuristic, check whether a RemoteLinuxDeployConfiguration
(not a derived one!) exists.

Change-Id: I06561e37ef8d0ddc6eddcf7ed211be779b21ab4d
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent bbb6a4bb
......@@ -31,6 +31,7 @@
**************************************************************************/
#include "remotelinuxrunconfigurationfactory.h"
#include "remotelinuxdeployconfigurationfactory.h"
#include "remotelinuxrunconfiguration.h"
#include "remotelinuxutils.h"
......@@ -91,10 +92,12 @@ bool RemoteLinuxRunConfigurationFactory::canClone(Target *parent, RunConfigurati
QStringList RemoteLinuxRunConfigurationFactory::availableCreationIds(Target *parent) const
{
if (Qt4BaseTarget *t = qobject_cast<Qt4BaseTarget *>(parent)) {
if (t && RemoteLinuxUtils::hasUnixQt(t)) {
return t->qt4Project()->applicationProFilePathes(RemoteLinuxRunConfiguration::Id);
}
const QList<DeployConfiguration *> &depConfs = parent->deployConfigurations();
foreach (const DeployConfiguration * const dc, depConfs) {
if (dc->id() == RemoteLinuxDeployConfigurationFactory::genericDeployConfigurationId()) {
return qobject_cast<Qt4BaseTarget *>(parent)->qt4Project()
->applicationProFilePathes(RemoteLinuxRunConfiguration::Id);
}
}
return QStringList();
}
......
Supports Markdown
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