forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user