forked from qt-creator/qt-creator
ProjectExplorer: Use function object for special build config init
Change-Id: I5da0f28ee1a64f8d9a3145f059019be702bee463 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -55,13 +55,11 @@ GenericBuildConfiguration::GenericBuildConfiguration(Target *parent, Core::Id id
|
||||
setConfigWidgetDisplayName(tr("Generic Manager"));
|
||||
setBuildDirectoryHistoryCompleter("Generic.BuildDir.History");
|
||||
|
||||
updateCacheAndEmitEnvironmentChanged();
|
||||
}
|
||||
|
||||
void GenericBuildConfiguration::initialize()
|
||||
{
|
||||
buildSteps()->appendStep(Constants::GENERIC_MS_ID);
|
||||
cleanSteps()->appendStep(Constants::GENERIC_MS_ID);
|
||||
setInitializer([this] {
|
||||
buildSteps()->appendStep(Constants::GENERIC_MS_ID);
|
||||
cleanSteps()->appendStep(Constants::GENERIC_MS_ID);
|
||||
updateCacheAndEmitEnvironmentChanged();
|
||||
});
|
||||
|
||||
updateCacheAndEmitEnvironmentChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user