From 7f943caedbc583d73a7218d1f922a3e8afd2c0b4 Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Tue, 21 Feb 2012 14:57:30 +0100 Subject: [PATCH] Autotools: Do not register buildconfigurationfactory Change-Id: I8df8ca7d4440436acb595d69d64f460125d4dbd0 Reviewed-by: Daniel Teske <daniel.teske@nokia.com> --- src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp | 1 - src/plugins/autotoolsprojectmanager/autotoolstarget.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp b/src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp index d16a9cdd741..f8389b6c372 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp @@ -67,7 +67,6 @@ bool AutotoolsProjectPlugin::initialize(const QStringList &arguments, return false; addAutoReleasedObject(new AutotoolsTargetFactory); - addAutoReleasedObject(new AutotoolsBuildConfigurationFactory); addAutoReleasedObject(new MakeStepFactory); addAutoReleasedObject(new AutogenStepFactory); addAutoReleasedObject(new ConfigureStepFactory); diff --git a/src/plugins/autotoolsprojectmanager/autotoolstarget.cpp b/src/plugins/autotoolsprojectmanager/autotoolstarget.cpp index 3cb86856bf3..ea93603cb23 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolstarget.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolstarget.cpp @@ -146,7 +146,7 @@ AutotoolsTarget *AutotoolsTargetFactory::create(Project *parent, const QString & AutotoolsTarget *t = new AutotoolsTarget(project); // Add default build configuration: - AutotoolsBuildConfigurationFactory *bcf = ExtensionSystem::PluginManager::instance()->getObject<AutotoolsBuildConfigurationFactory>(); + AutotoolsBuildConfigurationFactory *bcf = t->buildConfigurationFactory(); AutotoolsBuildConfiguration *bc = bcf->createDefaultConfiguration(t); bc->setDisplayName("Default Build"); -- GitLab