LocalRunConfiguration: Do not add a LocalEnvironmentAspect

This makes the specializations responsible to register the environment aspect
that makes the most sense for them.

The only real user of this is the QmlProject, which added its own
EnvironmentAspect on top of LocalEnvironmentAspect set by the base
class.

Change-Id: I2ad8c23a008e249dc919491a5fd397ec04502375
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Tobias Hunger
2013-11-01 14:13:41 +01:00
parent c759e39c1d
commit bb06ff83d7
7 changed files with 13 additions and 19 deletions

View File

@@ -60,6 +60,8 @@ QmlProjectRunConfiguration::QmlProjectRunConfiguration(ProjectExplorer::Target *
m_scriptFile(QLatin1String(M_CURRENT_FILE)),
m_isEnabled(false)
{
addExtraAspect(new QmlProjectEnvironmentAspect(this));
ctor();
}
@@ -98,8 +100,6 @@ void QmlProjectRunConfiguration::ctor()
setDisplayName(tr("QML Scene", "QMLRunConfiguration display name."));
else
setDisplayName(tr("QML Viewer", "QMLRunConfiguration display name."));
addExtraAspect(new QmlProjectEnvironmentAspect(this));
}
QString QmlProjectRunConfiguration::executable() const